summaryrefslogtreecommitdiff
path: root/smb.h
diff options
context:
space:
mode:
authoritojun <itojun>2001-06-25 03:07:30 +0000
committeritojun <itojun>2001-06-25 03:07:30 +0000
commitd20d0466d0006a12866261119dcaf33645f24d69 (patch)
tree77165ba342a3da32e1394c4a078201a606346190 /smb.h
parent4d83b45199c02c6068fb24ece429468d6fd5f4c2 (diff)
downloadtcpdump-d20d0466d0006a12866261119dcaf33645f24d69.tar.gz
strinct prototype. now we are -Wstrict-prototype clean.
couple of indent fixes (ts=8 sw=4) so that we can do a buffer overrun audit effectively.
Diffstat (limited to 'smb.h')
-rw-r--r--smb.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/smb.h b/smb.h
index 8ffc6f57..372b1d4a 100644
--- a/smb.h
+++ b/smb.h
@@ -1,10 +1,11 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/smb.h,v 1.3 2000-12-17 23:07:50 guy Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/smb.h,v 1.4 2001-06-25 03:07:31 itojun Exp $ (LBL) */
/*
- Copyright (C) Andrew Tridgell 1995-1999
-
- This software may be distributed either under the terms of the
- BSD-style license that accompanies tcpdump or the GNU GPL version 2
- or later */
+ * Copyright (C) Andrew Tridgell 1995-1999
+ *
+ * This software may be distributed either under the terms of the
+ * BSD-style license that accompanies tcpdump or the GNU GPL version 2
+ * or later
+ */
#define CVAL(buf,pos) (((unsigned char *)(buf))[pos])
#define PVAL(buf,pos) ((unsigned)CVAL(buf,pos))
@@ -147,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) ((unsigned long)(((char *)(p1)) - (char *)(p2)))
/* some protos */
-const uchar *fdata(const uchar *buf, const char *fmt, const uchar *maxbuf);
+const uchar *fdata(const uchar *, const char *, const uchar *);