s3:connections: add a CNUM_OFFSET for mapping between cnum and the bitmap index
authorMichael Adam <obnox@samba.org>
Wed, 6 Jun 2012 13:12:08 +0000 (15:12 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 6 Jun 2012 17:37:13 +0000 (19:37 +0200)
commitaa3a7de3687ac78ae1ed3fa395d8c4707a24b774
treee8b94cee107a3daa54797040c0ad1da9c1a5e60a
parent82a9d23186d6729f3a3b24900310beb7090b0b2c
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>
source3/include/smb.h
source3/smbd/conn.c