Non-error connection numbers are always positive
authorAndrew Bartlett <abartlet@samba.org>
Sat, 1 Feb 2003 06:24:07 +0000 (06:24 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 1 Feb 2003 06:24:07 +0000 (06:24 +0000)
(This used to be commit 69e94440cd89a19bbcebc49d87836153b452da47)

source3/smbd/conn.c

index c771f1254b8123e228377d219c1dfbe441a60a56..38fa2e023769d9db2fbc0c6a01576bee8d86cc43 100644 (file)
@@ -68,7 +68,7 @@ BOOL conn_snum_used(int snum)
 /****************************************************************************
 find a conn given a cnum
 ****************************************************************************/
-connection_struct *conn_find(int cnum)
+connection_struct *conn_find(unsigned cnum)
 {
        int count=0;
        connection_struct *conn;
@@ -174,7 +174,7 @@ clear a vuid out of the validity cache, and as the 'owner' of a connection.
 void conn_clear_vuid_cache(uint16 vuid)
 {
        connection_struct *conn;
-       int i;
+       unsigned int i;
 
        for (conn=Connections;conn;conn=conn->next) {
                if (conn->vuid == vuid) {