aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/cosine.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-17 13:37:11 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-17 20:37:42 +0000
commit5bfde7c6386b56db80fec85e2ca7dc1d271b461c (patch)
tree7a1e391e46bf9720719ed81ea504b193a66901a8 /wiretap/cosine.c
parent35a9b9813879fff308c838f8a4351abfeafa8a4a (diff)
Don't use ctype.h routines.
That avoids locale dependency and handles possibly-signed chars (which we weren't doing before). Change-Id: I70f3d993c9a8fbf870901f12b430d733968c3fa8 Reviewed-on: https://code.wireshark.org/review/4781 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/cosine.c')
-rw-r--r--wiretap/cosine.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/wiretap/cosine.c b/wiretap/cosine.c
index b7109ff7f9..4ce5437245 100644
--- a/wiretap/cosine.c
+++ b/wiretap/cosine.c
@@ -30,7 +30,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
/*
@@ -182,7 +181,7 @@ static int parse_single_hex_dump_line(char* rec, guint8 *buf,
static gboolean empty_line(const gchar *line)
{
while (*line) {
- if (isspace((guchar)*line)) {
+ if (g_ascii_isspace(*line)) {
line++;
continue;
} else {