From b8e943e7245e94601b54e0659db3d74d2a944a1f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 13 Jun 2012 17:18:59 +0200 Subject: s3:smbd: change FNUM_FIELD_INVALID from -1 to 0 This is in preparation for changing the type of files_struct.fnum to unit64_t. This can safely be done, since all checks have been converted to using FNUM_FIELD_INVALID and fsp->fnum is only ever set to either FNUM_FIELD_INVALID or some i + FILE_HANDLE_OFFSET with i >= 0 and FILE_HANDLE_OFFSET > 0. Signed-off-by: Stefan Metzmacher --- source3/include/smb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/include/smb.h b/source3/include/smb.h index 8a2314261c..1c05459cf5 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -675,7 +675,7 @@ enum acl_compatibility {ACL_COMPAT_AUTO, ACL_COMPAT_WINNT, ACL_COMPAT_WIN2K}; #define TID_FIELD_INVALID 0 #define CNUM_OFFSET 1 /* shift for bitmap index */ -#define FNUM_FIELD_INVALID -1 +#define FNUM_FIELD_INVALID 0 /* * Size of buffer to use when moving files across filesystems. -- cgit