diff options
author | Guy Harris <gharris@sonic.net> | 2021-04-30 23:49:20 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-04-30 23:49:20 -0700 |
commit | 38f99c09dcb5e8e441601fbc64b88f7976570f9c (patch) | |
tree | 8f1320cebe59be262fb097ae7e33e8cf3d9149a9 /sharkd_daemon.c | |
parent | 49fd57440f2e70e42ed71dc8befb059feb3a4237 (diff) | |
download | wireshark-38f99c09dcb5e8e441601fbc64b88f7976570f9c.tar.gz wireshark-38f99c09dcb5e8e441601fbc64b88f7976570f9c.tar.bz2 wireshark-38f99c09dcb5e8e441601fbc64b88f7976570f9c.zip |
sharkd_daemon: fix signed vs. unsigned comparison.
"int argc, char **argv". If you're looping from 1 to argc, the index
should just be an int; there's no advantage to making it a size_t.
Diffstat (limited to 'sharkd_daemon.c')
-rw-r--r-- | sharkd_daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sharkd_daemon.c b/sharkd_daemon.c index d5b587dbed..bdb6e3739b 100644 --- a/sharkd_daemon.c +++ b/sharkd_daemon.c @@ -440,7 +440,7 @@ sharkd_loop(int argc _U_, char* argv[]) // run in Gold Console mode (void) g_strlcat(command_line, "sharkd.exe -m", sizeof(command_line)); - for (size_t i = 1; i < argc; i++) + for (int i = 1; i < argc; i++) { if ( !g_ascii_strncasecmp(argv[i], "-a", (guint)strlen(argv[i])) |