The GTK+ documentation says we can pass NULL to gtk_table_get_size(). Do
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 19 Jul 2011 22:38:28 +0000 (22:38 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 19 Jul 2011 22:38:28 +0000 (22:38 +0000)
that instead of using a dummy variable.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38127 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/sip_stat.c

index 97161bdbaea0efe1d82150dc5ef73dfe55fecf5f..9337eaceded87f3f93d126908d7c288fc2cf4318 100644 (file)
@@ -256,7 +256,7 @@ sip_draw_hash_responses(gint * key _U_ , sip_response_code_t *data, gchar * unus
     /* Create an entry in the relevant box of the window */
     if (data->widget==NULL)
     {
-        guint x, dummy;
+        guint x;
         GtkWidget *tmp;
         guint i = data->response_code;
 
@@ -294,7 +294,7 @@ sip_draw_hash_responses(gint * key _U_ , sip_response_code_t *data, gchar * unus
 
         /* Get number of rows in table */
 #if GTK_CHECK_VERSION(2,22,0)
-        gtk_table_get_size(GTK_TABLE(data->table), &x, &dummy);
+        gtk_table_get_size(GTK_TABLE(data->table), &x, NULL);
 #else
         x = GTK_TABLE(data->table)->nrows;
 #endif