summaryrefslogtreecommitdiff
path: root/smb.h
diff options
context:
space:
mode:
authoritojun <itojun>2001-06-25 18:58:07 +0000
committeritojun <itojun>2001-06-25 18:58:07 +0000
commita1d73ea7ee29b89184a4e367b7169a18ff13d3e2 (patch)
tree4d9e878d14e1972458530e73814b6c64f566fbed /smb.h
parent4b158e394b5b80ee56c2046a67f76df699e691f9 (diff)
downloadtcpdump-a1d73ea7ee29b89184a4e367b7169a18ff13d3e2.tar.gz
more audit/style. fix a couple of signed/unsigned mixup,
printf type mismatch, as well as buffer overrun possibilities
Diffstat (limited to 'smb.h')
-rw-r--r--smb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/smb.h b/smb.h
index 372b1d4a..a8ee2c20 100644
--- a/smb.h
+++ b/smb.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/smb.h,v 1.4 2001-06-25 03:07:31 itojun Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/smb.h,v 1.5 2001-06-25 18:58:08 itojun Exp $ (LBL) */
/*
* Copyright (C) Andrew Tridgell 1995-1999
*
@@ -148,7 +148,7 @@
#define TRANSACT2_FINDNOTIFYNEXT 12
#define TRANSACT2_MKDIR 13
-#define PTR_DIFF(p1, p2) ((unsigned long)(((char *)(p1)) - (char *)(p2)))
+#define PTR_DIFF(p1, p2) ((size_t)(((char *)(p1)) - (char *)(p2)))
/* some protos */
const uchar *fdata(const uchar *, const char *, const uchar *);