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