X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/585ac3db0663f474fd3417ea91953b58022cc9d9..refs/pull/482/head:/smb.h diff --git a/smb.h b/smb.h index fea9fa46..b521617f 100644 --- a/smb.h +++ b/smb.h @@ -6,7 +6,8 @@ * or later */ -#define SMBMIN(a,b) ((a)<(b)?(a):(b)) +/* for netdissect_options */ +#include "netdissect.h" /* the complete */ #define SMBmkdir 0x00 /* create directory */ @@ -115,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(const u_char *, const char *, const u_char *, int); +const u_char *smb_fdata(netdissect_options *, const u_char *, const char *, const u_char *, int);