summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-01 06:24:07 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-01 06:24:07 +0000
commit95a604f5df751a19fa9190f60f6b3c4dc7cd83fe (patch)
treea7db6b5011b57e94f9b8180fa00d53c7fb980322
parentb7ee989aa888a4bb59d3c11aa4c319f6945ec337 (diff)
downloadsamba-95a604f5df751a19fa9190f60f6b3c4dc7cd83fe.tar.gz
samba-95a604f5df751a19fa9190f60f6b3c4dc7cd83fe.tar.bz2
samba-95a604f5df751a19fa9190f60f6b3c4dc7cd83fe.zip
Non-error connection numbers are always positive
(This used to be commit 69e94440cd89a19bbcebc49d87836153b452da47)
-rw-r--r--source3/smbd/conn.c4
1 files changed, 2 insertions, 2 deletions
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) {