diff options
author | Michael Adam <obnox@samba.org> | 2012-06-06 15:12:08 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-06-06 19:37:13 +0200 |
commit | aa3a7de3687ac78ae1ed3fa395d8c4707a24b774 (patch) | |
tree | e8b94cee107a3daa54797040c0ad1da9c1a5e60a /source3/include | |
parent | 82a9d23186d6729f3a3b24900310beb7090b0b2c (diff) | |
download | samba-aa3a7de3687ac78ae1ed3fa395d8c4707a24b774.tar.gz samba-aa3a7de3687ac78ae1ed3fa395d8c4707a24b774.tar.bz2 samba-aa3a7de3687ac78ae1ed3fa395d8c4707a24b774.zip |
s3:connections: add a CNUM_OFFSET for mapping between cnum and the bitmap index
This moves the start of the range of valid cnum values up from 0 to CNUM_OFFSET
(currently 1), so that in a later step we can use 0 as invalid cnum value
instead of the current -1. This will allow us to change the type of cnum to
uint32_t from a mix of int and unsigned.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/smb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h index 732a5308ff..5ee2b1fb44 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -672,6 +672,8 @@ enum acl_compatibility {ACL_COMPAT_AUTO, ACL_COMPAT_WINNT, ACL_COMPAT_WIN2K}; #define UID_FIELD_INVALID 0 #define VUID_OFFSET 100 /* Amount to bias returned vuid numbers */ +#define CNUM_OFFSET 1 /* shift for bitmap index */ + /* * Size of buffer to use when moving files across filesystems. */ |