summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-13 17:18:59 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-15 03:28:13 +0200
commitb8e943e7245e94601b54e0659db3d74d2a944a1f (patch)
tree62e261189adb029e828c892b464aaad723504ef4
parent5d2af68a25534bd84601f3ac40853ef9fcb21edb (diff)
downloadsamba-b8e943e7245e94601b54e0659db3d74d2a944a1f.tar.gz
samba-b8e943e7245e94601b54e0659db3d74d2a944a1f.tar.bz2
samba-b8e943e7245e94601b54e0659db3d74d2a944a1f.zip
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 <metze@samba.org>
-rw-r--r--source3/include/smb.h2
1 files changed, 1 insertions, 1 deletions
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.