From 95a604f5df751a19fa9190f60f6b3c4dc7cd83fe Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 1 Feb 2003 06:24:07 +0000 Subject: Non-error connection numbers are always positive (This used to be commit 69e94440cd89a19bbcebc49d87836153b452da47) --- source3/smbd/conn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c index c771f1254b..38fa2e0237 100644 --- a/source3/smbd/conn.c +++ b/source3/smbd/conn.c @@ -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) { -- cgit