aboutsummaryrefslogtreecommitdiffstats
path: root/color_filters.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-17 16:42:40 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-17 23:43:09 +0000
commita91799ebfa3a3aac705132722e57acc92fe4eddb (patch)
tree0c0cc5ec7621cd63308ea11bff865dd0b05f7afb /color_filters.c
parent19b7819694d328bdc17cd7d4812ed7f6edfd623d (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 'color_filters.c')
-rw-r--r--color_filters.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/color_filters.c b/color_filters.c
index 297d4ead4c..d9e2ecfdc4 100644
--- a/color_filters.c
+++ b/color_filters.c
@@ -29,7 +29,6 @@
#include <stdio.h>
#include <stdlib.h>
-#include <ctype.h>
#include <string.h>
#include <wsutil/filesystem.h>
@@ -469,7 +468,7 @@ read_filters_file(FILE *f, gpointer user_data)
guint32 name_len = INIT_BUF_SIZE;
guint32 filter_exp_len = INIT_BUF_SIZE;
guint32 i = 0;
- gint32 c;
+ int c;
guint16 fg_r, fg_g, fg_b, bg_r, bg_g, bg_b;
gboolean disabled = FALSE;
gboolean skip_end_of_line = FALSE;
@@ -489,7 +488,7 @@ read_filters_file(FILE *f, gpointer user_data)
skip_end_of_line = FALSE;
}
- while ((c = getc(f)) != EOF && isspace(c)) {
+ while ((c = getc(f)) != EOF && g_ascii_isspace(c)) {
if (c == '\n') {
continue;
}