diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-10-17 16:42:40 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-10-17 23:43:09 +0000 |
commit | a91799ebfa3a3aac705132722e57acc92fe4eddb (patch) | |
tree | 0c0cc5ec7621cd63308ea11bff865dd0b05f7afb /capture_opts.c | |
parent | 19b7819694d328bdc17cd7d4812ed7f6edfd623d (diff) |
Don't use ctype.h routines.
That avoids locale dependency and handles possibly-signed chars(which
we weren't always doing before).
Change-Id: I89e50678abb8c3e535081c92ca25bc1bab672c68
Reviewed-on: https://code.wireshark.org/review/4798
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'capture_opts.c')
-rw-r--r-- | capture_opts.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/capture_opts.c b/capture_opts.c index 5f43d28d31..9e75aa4d0b 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -28,7 +28,6 @@ #ifdef HAVE_LIBPCAP #include <string.h> -#include <ctype.h> #ifdef HAVE_UNISTD_H #include <unistd.h> @@ -259,7 +258,7 @@ set_autostop_criterion(capture_options *capture_opts, const char *autostoparg) * as we allow it in the preferences file, we might as well * allow it here). */ - while (isspace((guchar)*p)) + while (g_ascii_isspace((guchar)*p)) p++; if (*p == '\0') { /* @@ -310,7 +309,7 @@ get_ring_arguments(capture_options *capture_opts, const char *arg) * as we allow it in the preferences file, we might as well * allow it here). */ - while (isspace((guchar)*p)) + while (g_ascii_isspace((guchar)*p)) p++; if (*p == '\0') { /* @@ -356,7 +355,7 @@ get_sampling_arguments(capture_options *capture_opts, const char *arg) p = colonp; *p++ = '\0'; - while (isspace((guchar)*p)) + while (g_ascii_isspace((guchar)*p)) p++; if (*p == '\0') { *colonp = ':'; @@ -414,7 +413,7 @@ get_auth_arguments(capture_options *capture_opts, const char *arg) p = colonp; *p++ = '\0'; - while (isspace((guchar)*p)) + while (g_ascii_isspace((guchar)*p)) p++; if (capture_opts->ifaces->len > 0) { |