]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
cleaning up a few compiler warngings
authorGerald Carter <jerry@samba.org>
Fri, 19 Mar 2004 16:21:50 +0000 (16:21 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 19 Mar 2004 16:21:50 +0000 (16:21 +0000)
(This used to be commit 8ceefd5438a1071a262a7db234c9857fbad05147)

source3/libsmb/cliconnect.c
source3/libsmb/clientgen.c

index 938d6fd29bc89370dff5d377dc0b21bd1d713801..8093d79452d820e0680bad7793e0c82b1b6155a5 100644 (file)
@@ -1661,7 +1661,6 @@ struct cli_state *get_ipc_connect_master_ip_bcast(pstring workgroup, struct user
        struct ip_service *ip_list;
        struct cli_state *cli;
        int i, count;
-       struct in_addr server_ip; 
 
         DEBUG(99, ("Do broadcast lookup for workgroups on local network\n"));
 
index 370249d0474029bcb170d0e287cc0e99c009ec12..66edc3ce38bbc81d34a3e412b1da8e8c4a22e94c 100644 (file)
@@ -375,7 +375,7 @@ void cli_close_connection(struct cli_state *cli)
         * later.  This tree disconnect forces the peer to clean up, since the
         * connection will be going away.
         */
-       if ( cli->cnum != -1 )
+       if ( cli->cnum != (uint16)-1 )
                cli_tdis(cli);
         
        cli_nt_session_close(cli);