aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/vms.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-09 00:06:30 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-09 00:06:30 +0000
commit31c636ff4a93e82c306cae41e2b386a59e72384c (patch)
tree32069d157f50303fe2c522adb8d1274406281018 /wiretap/vms.c
parenta2d69c6fae86a8dfb3e0a92b54a1229029b657c6 (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/vms.c')
-rw-r--r--wiretap/vms.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/wiretap/vms.c b/wiretap/vms.c
index a8f9ee7d60..8ccb086ee3 100644
--- a/wiretap/vms.c
+++ b/wiretap/vms.c
@@ -1,6 +1,6 @@
/* vms.c
*
- * $Id: vms.c,v 1.21 2004/01/25 21:55:17 guy Exp $
+ * $Id: vms.c,v 1.22 2004/02/09 00:06:30 guy Exp $
*
* Wiretap Library
* Copyright (c) 2001 by Marc Milgram <ethereal@mmilgram.NOSPAMmail.net>
@@ -344,12 +344,12 @@ isdumpline( gchar *line )
{
int i, j;
- while (*line && !isalnum(*line))
+ while (*line && !isalnum((guchar)*line))
line++;
for (j=0; j<4; j++) {
for (i=0; i<8; i++, line++)
- if (! isxdigit(*line))
+ if (! isxdigit((guchar)*line))
return FALSE;
for (i=0; i<3; i++, line++)
@@ -357,7 +357,7 @@ isdumpline( gchar *line )
return FALSE;
}
- return isspace(*line);
+ return isspace((guchar)*line);
}
/* Parses a packet record header. */
@@ -418,7 +418,7 @@ parse_vms_rec_hdr(wtap *wth, FILE_T fh, int *err, gchar **err_info)
}
if ( (! pkt_len) && (p = strstr(line, "Length"))) {
p += sizeof("Length ");
- while (*p && ! isdigit(*p))
+ while (*p && ! isdigit((guchar)*p))
p++;
if ( !*p ) {
@@ -479,7 +479,7 @@ parse_vms_hex_dump(FILE_T fh, int pkt_len, guint8* buf, int *err,
}
line[VMS_LINE_LENGTH] = '\0';
}
- while (line[offset] && !isxdigit(line[offset]))
+ while (line[offset] && !isxdigit((guchar)line[offset]))
offset++;
}
if (!parse_single_hex_dump_line(line, buf, i,