s3:smbd: change FNUM_FIELD_INVALID from -1 to 0
authorMichael Adam <obnox@samba.org>
Wed, 13 Jun 2012 15:18:59 +0000 (17:18 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 15 Jun 2012 01:28:13 +0000 (03:28 +0200)
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 <metze@samba.org>
source3/include/smb.h

index 8a2314261cbacfcf8f1c1e9f78b0774cac43b90b..1c05459cf5f20e22a953398a48ea70c20acd7d61 100644 (file)
@@ -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.