Author: tpot
Date: 2004-10-19 07:41:19 +0000 (Tue, 19 Oct 2004)
New Revision: 3060

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/smb_server&rev=3060&nolog=1

Log:
Replace magic number with a C99 constant.

Modified:
   branches/SAMBA_4_0/source/smb_server/conn.c


Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/conn.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/conn.c 2004-10-19 07:18:56 UTC (rev 3059)
+++ branches/SAMBA_4_0/source/smb_server/conn.c 2004-10-19 07:41:19 UTC (rev 3060)
@@ -59,7 +59,7 @@
        tcon = talloc_zero_p(smb_conn, struct smbsrv_tcon);
        if (!tcon) return NULL;
 
-       i = idr_get_new(smb_conn->tree.idtree_tid, tcon, 0x10000);      
+       i = idr_get_new(smb_conn->tree.idtree_tid, tcon, UINT16_MAX + 1);
        if (i == -1) {
                DEBUG(1,("ERROR! Out of connection structures\n"));            
                return NULL;

Reply via email to