diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-03-18 23:38:12 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-03-19 06:38:44 +0000 |
commit | da3e4f92d521528369520bdb4593cc591732a27d (patch) | |
tree | 72718d452a4e24bf1c5f239eaac271027f95d287 /ui/gtk/capture_dlg.c | |
parent | baa83912e3ba3c5146342eb7e1e30f56b462587f (diff) | |
download | wireshark-da3e4f92d521528369520bdb4593cc591732a27d.tar.gz |
Make the snapshot-length member of interface_t an int.
That matches what it is in other structures, and eliminates a compiler
warning.
While we're at it, remove an empty if statement revealed by that change.
Change-Id: I5e8c8f92fdb3567e75800c729443737032a1bcc7
Reviewed-on: https://code.wireshark.org/review/7752
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk/capture_dlg.c')
-rw-r--r-- | ui/gtk/capture_dlg.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; |