summaryrefslogtreecommitdiff
path: root/smbutil.c
diff options
context:
space:
mode:
authorguy <guy>2002-04-26 05:12:40 +0000
committerguy <guy>2002-04-26 05:12:40 +0000
commitc3287e58b07b4e567e057f93c6beca9930cca064 (patch)
treed1660ec9ef5280aecdcc49cfa1ce68894c1a99b7 /smbutil.c
parent03c3587323e8b9bc7ca83716eb11b84eb46a2af2 (diff)
downloadtcpdump-c3287e58b07b4e567e057f93c6beca9930cca064.tar.gz
Add some casts to squelch compiler complaints (and remove potential
problems, although the string in question probably won't contain any non-ASCII characters).
Diffstat (limited to 'smbutil.c')
-rw-r--r--smbutil.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/smbutil.c b/smbutil.c
index 729885fc..8d2d4170 100644
--- a/smbutil.c
+++ b/smbutil.c
@@ -12,7 +12,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.20 2002-04-25 04:54:03 guy Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.21 2002-04-26 05:12:40 guy Exp $";
#endif
#include <sys/param.h>
@@ -418,7 +418,7 @@ smb_fdata1(const u_char *buf, const char *fmt, const u_char *maxbuf)
int l = atoi(fmt + 1);
buf += l;
fmt++;
- while (isdigit(*fmt))
+ while (isdigit((unsigned char)*fmt))
fmt++;
break;
}
@@ -532,7 +532,7 @@ smb_fdata1(const u_char *buf, const char *fmt, const u_char *maxbuf)
printf("%-*.*s", l, l, buf);
buf += l;
fmt++;
- while (isdigit(*fmt))
+ while (isdigit((unsigned char)*fmt))
fmt++;
break;
}
@@ -542,7 +542,7 @@ smb_fdata1(const u_char *buf, const char *fmt, const u_char *maxbuf)
while (l--)
printf("%02x", *buf++);
fmt++;
- while (isdigit(*fmt))
+ while (isdigit((unsigned char)*fmt))
fmt++;
break;
}
@@ -574,7 +574,7 @@ smb_fdata1(const u_char *buf, const char *fmt, const u_char *maxbuf)
break;
}
fmt++;
- while (isdigit(*fmt))
+ while (isdigit((unsigned char)*fmt))
fmt++;
break;
}
@@ -606,7 +606,7 @@ smb_fdata1(const u_char *buf, const char *fmt, const u_char *maxbuf)
}
printf("%s", t ? asctime(localtime(&t)) : "NULL\n");
fmt++;
- while (isdigit(*fmt))
+ while (isdigit((unsigned char)*fmt))
fmt++;
break;
}