summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-09-11 13:48:35 -0700
committerGuy Harris <guy@alum.mit.edu>2016-09-11 20:49:05 +0000
commit8629e60922e226665832f19aa698c8aff41eacef (patch)
treee35a47e3a237680e892a48ed12f30fc22cb2928a /ui
parent4abf452b193b3be3fd32bc113d573984495af232 (diff)
downloadwireshark-8629e60922e226665832f19aa698c8aff41eacef.tar.gz
More signed vs. unsigned argument cleanups.
Use the get.*guint32 routines to get unsigned values. Change-Id: I75e83b2d21bdf08c7c995e36e4deb3b1c6d6959d Reviewed-on: https://code.wireshark.org/review/17651 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui')
-rw-r--r--ui/commandline.c2
-rw-r--r--ui/commandline.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/commandline.c b/ui/commandline.c
index e936a327b9..ad6ee5cd67 100644
--- a/ui/commandline.c
+++ b/ui/commandline.c
@@ -451,7 +451,7 @@ void commandline_other_options(int argc, char *argv[], gboolean opt_reset)
global_commandline_info.jump_backwards = SD_BACKWARD;
break;
case 'g': /* Go to packet with the given packet number */
- global_commandline_info.go_to_packet = get_positive_int(optarg, "go to packet");
+ global_commandline_info.go_to_packet = get_nonzero_guint32(optarg, "go to packet");
break;
case 'J': /* Jump to the first packet which matches the filter criteria */
global_commandline_info.jfilter = optarg;
diff --git a/ui/commandline.h b/ui/commandline.h
index 9d770fb678..0a20ad37f2 100644
--- a/ui/commandline.h
+++ b/ui/commandline.h
@@ -42,7 +42,7 @@ typedef struct commandline_param_info
#endif
e_prefs *prefs_p;
search_direction jump_backwards;
- guint go_to_packet;
+ guint32 go_to_packet;
gchar* jfilter;
gchar* cf_name;
gchar* rfilter;