mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
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>
This commit is contained in:
parent
5d2af68a25
commit
b8e943e724
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user