diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-07-12 01:48:24 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-07-12 01:48:24 +0000 |
commit | 8408d3c5af1716659e4662a363c2aa2693867254 (patch) | |
tree | 0d1aa7b1f115345acaa3a4d5af41e16d546b7e2d /gtk/stats_tree_stat.c | |
parent | 844a696d55db9327a34403d347789f88570dccb7 (diff) |
More (mostly stats tree) unsigned->signed char cleanup
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25717 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/stats_tree_stat.c')
-rw-r--r-- | gtk/stats_tree_stat.c | 39 |
1 files changed, 28 insertions, 11 deletions
diff --git a/gtk/stats_tree_stat.c b/gtk/stats_tree_stat.c index ffa1319467..b2ecb905b7 100644 --- a/gtk/stats_tree_stat.c +++ b/gtk/stats_tree_stat.c @@ -73,7 +73,9 @@ enum _stat_tree_columns { /* creates the gtk representation for a stat_node * node: the node */ -static void setup_gtk_node_pr(stat_node* node) { +static void +setup_gtk_node_pr(stat_node* node) +{ GtkTreeIter* parent = NULL; node->pr = g_malloc(sizeof(st_node_pres)); @@ -90,7 +92,9 @@ static void setup_gtk_node_pr(stat_node* node) { } -static void draw_gtk_node(stat_node* node) { +static void +draw_gtk_node(stat_node* node) +{ static gchar value[NUM_BUF_SIZE]; static gchar rate[NUM_BUF_SIZE]; static gchar percent[NUM_BUF_SIZE]; @@ -113,7 +117,9 @@ static void draw_gtk_node(stat_node* node) { } } -static void draw_gtk_tree( void *psp ) { +static void +draw_gtk_tree(void *psp) +{ stats_tree *st = psp; stat_node* child; @@ -133,7 +139,8 @@ static void draw_gtk_tree( void *psp ) { void protect_thread_critical_region(void); void unprotect_thread_critical_region(void); -static void free_gtk_tree(GtkWindow *win _U_, stats_tree *st) +static void +free_gtk_tree(GtkWindow *win _U_, stats_tree *st) { protect_thread_critical_region(); @@ -148,7 +155,9 @@ static void free_gtk_tree(GtkWindow *win _U_, stats_tree *st) } -static void clear_node_pr(stat_node* n) { +static void +clear_node_pr(stat_node* n) +{ stat_node* c; for (c = n->children; c; c = c->next) { clear_node_pr(c); @@ -160,8 +169,10 @@ static void clear_node_pr(stat_node* n) { } } -static void reset_tap(void* p) { - stats_tree* st = p; +static void +reset_tap(void* p) +{ + stats_tree* st = p; stat_node* c; for (c = st->root.children; c; c = c->next) { clear_node_pr(c); @@ -171,8 +182,10 @@ static void reset_tap(void* p) { } /* initializes the stats_tree window */ -static void init_gtk_tree(const char* optarg, void *userdata _U_) { - guint8* abbr = stats_tree_get_abbr(optarg); +static void +init_gtk_tree(const char* optarg, void *userdata _U_) +{ + gchar *abbr = stats_tree_get_abbr(optarg); stats_tree* st = NULL; stats_tree_cfg* cfg = NULL; tree_pres* pr = g_malloc(sizeof(tree_pres)); @@ -320,7 +333,9 @@ static void init_gtk_tree(const char* optarg, void *userdata _U_) { } -static void register_gtk_stats_tree_tap (gpointer k _U_, gpointer v, gpointer p _U_) { +static void +register_gtk_stats_tree_tap (gpointer k _U_, gpointer v, gpointer p _U_) +{ stats_tree_cfg* cfg = v; cfg->pr = g_malloc(sizeof(tree_pres)); @@ -336,7 +351,9 @@ static void register_gtk_stats_tree_tap (gpointer k _U_, gpointer v, gpointer p REGISTER_STAT_GROUP_UNSORTED); } -static void free_tree_presentation(stats_tree* st) { +static void +free_tree_presentation(stats_tree* st) +{ g_free(st->pr); } |