summaryrefslogtreecommitdiffstats
path: root/contrib/tcpdump/smb.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tcpdump/smb.h')
-rw-r--r--contrib/tcpdump/smb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tcpdump/smb.h b/contrib/tcpdump/smb.h
index 88eaa06..b521617 100644
--- a/contrib/tcpdump/smb.h
+++ b/contrib/tcpdump/smb.h
@@ -116,7 +116,7 @@
#define TRANSACT2_FINDNOTIFYNEXT 12
#define TRANSACT2_MKDIR 13
-#define PTR_DIFF(p1, p2) ((size_t)(((char *)(p1)) - (char *)(p2)))
+#define PTR_DIFF(p1, p2) ((size_t)(((const char *)(p1)) - (const char *)(p2)))
/* some protos */
const u_char *smb_fdata(netdissect_options *, const u_char *, const char *, const u_char *, int);
OpenPOWER on IntegriCloud