Bugfix GTK RPC SRT dialog use of direct hashing.
authorMichael Mann <mmann78@netscape.net>
Fri, 10 Jul 2015 01:44:27 +0000 (21:44 -0400)
committerEvan Huus <eapache@gmail.com>
Fri, 10 Jul 2015 03:28:54 +0000 (03:28 +0000)
Change-Id: I3db6ee3e6c5cb79b9cc31068930c9fe9c9d8aa7a
Reviewed-on: https://code.wireshark.org/review/9581
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Evan Huus <eapache@gmail.com>
ui/gtk/rpc_stat.c

index 73a184c57ed8e3b3600a9513b226feebb503948a..cf18aa910e70401b84c636ab7aa264c8def2aca6 100644 (file)
@@ -327,7 +327,7 @@ rpcstat_version_select(GtkWidget *vers_combo_box, gpointer user_data _U_)
 static void
 rpcstat_program_select(GtkWidget *prog_combo_box, gpointer user_data)
 {
-       guint32 *k;
+       guint32 k;
        GtkWidget *vers_combo_box;
        int i;
 
@@ -336,7 +336,7 @@ rpcstat_program_select(GtkWidget *prog_combo_box, gpointer user_data)
        if (! ws_combo_box_get_active_pointer(GTK_COMBO_BOX(prog_combo_box), (gpointer *)&k)) {
                g_assert_not_reached();  /* Programming error: somehow no active item */
        }
-       rpc_program=*k;
+       rpc_program=k;
 
        /* re-create version menu */
        rpc_version=0;
@@ -361,11 +361,11 @@ rpcstat_program_select(GtkWidget *prog_combo_box, gpointer user_data)
 static void
 rpcstat_list_programs(gpointer *key, gpointer *value, gpointer user_data)
 {
-       guint32 k=GPOINTER_TO_INT(key);
+       guint32 k=GPOINTER_TO_UINT(key);
        rpc_prog_info_value *v=(rpc_prog_info_value *)value;
        GtkComboBox *prog_combo_box = (GtkComboBox *)user_data;
 
-       ws_combo_box_append_text_and_pointer(prog_combo_box, v->progname, &k);
+       ws_combo_box_append_text_and_pointer(prog_combo_box, v->progname, GUINT_TO_POINTER(k));
 
        if(!rpc_program){
                rpc_program=k;