summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/cliconnect.c1
-rw-r--r--source3/libsmb/clientgen.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 938d6fd29b..8093d79452 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 370249d047..66edc3ce38 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);