From: Gerald Carter Date: Fri, 19 Mar 2004 16:21:50 +0000 (+0000) Subject: cleaning up a few compiler warngings X-Git-Tag: samba-4.0.0alpha6~801^2~11793^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f68ccb8027ffa9c9875ad2b327c33a1eeb3ffab;p=thirdparty%2Fsamba.git cleaning up a few compiler warngings (This used to be commit 8ceefd5438a1071a262a7db234c9857fbad05147) --- diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 938d6fd29bc..8093d79452d 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -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")); diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 370249d0474..66edc3ce38b 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -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);