diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-02-09 00:06:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-02-09 00:06:30 +0000 |
commit | 31c636ff4a93e82c306cae41e2b386a59e72384c (patch) | |
tree | 32069d157f50303fe2c522adb8d1274406281018 /wiretap/cosine.c | |
parent | a2d69c6fae86a8dfb3e0a92b54a1229029b657c6 (diff) |
Cast the arguments to <ctype.h> macros to "guchar", to squelch
"subscript has type `char'" warnings and to make the code work correctly
if there are characters with the 8th bit set.
svn path=/trunk/; revision=10010
Diffstat (limited to 'wiretap/cosine.c')
-rw-r--r-- | wiretap/cosine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/cosine.c b/wiretap/cosine.c index 4c0e541db4..d121e2bd4c 100644 --- a/wiretap/cosine.c +++ b/wiretap/cosine.c @@ -1,6 +1,6 @@ /* cosine.c * - * $Id: cosine.c,v 1.8 2004/01/25 21:55:12 guy Exp $ + * $Id: cosine.c,v 1.9 2004/02/09 00:06:30 guy Exp $ * * CoSine IPNOS L2 debug output parsing * Copyright (c) 2002 by Motonori Shindo <mshindo@mshindo.net> @@ -186,7 +186,7 @@ static int parse_single_hex_dump_line(char* rec, guint8 *buf, static gboolean empty_line(const gchar *line) { while (*line) { - if (isspace(*line)) { + if (isspace((guchar)*line)) { line++; continue; } else { |