diff options
-rw-r--r-- | capture_opts.h | 2 | ||||
-rw-r--r-- | ui/gtk/capture_dlg.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/capture_opts.h b/capture_opts.h index cfbe53360e..5eb928e400 100644 --- a/capture_opts.h +++ b/capture_opts.h @@ -177,7 +177,7 @@ typedef struct interface_tag { gint active_dlt; gboolean pmode; gboolean has_snaplen; - guint snaplen; + int snaplen; gboolean local; #if defined(_WIN32) || defined(HAVE_PCAP_CREATE) gint buffer; diff --git a/ui/gtk/capture_dlg.c b/ui/gtk/capture_dlg.c index 46e9e1996b..d29c6ffe69 100644 --- a/ui/gtk/capture_dlg.c +++ b/ui/gtk/capture_dlg.c @@ -2447,8 +2447,6 @@ save_options_cb(GtkWidget *win _U_, gpointer user_data _U_) device.pmode = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(promisc_cb)); device.has_snaplen = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(snap_cb)); if (device.has_snaplen) { - if (device.snaplen != (guint)gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(snap_sb))) { - } device.snaplen = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(snap_sb)); if (device.snaplen < 1) device.snaplen = WTAP_MAX_PACKET_SIZE; |