summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-03-19 16:21:50 +0000
committerGerald Carter <jerry@samba.org>2004-03-19 16:21:50 +0000
commit9f68ccb8027ffa9c9875ad2b327c33a1eeb3ffab (patch)
treebb401c5cd4c14493eb1949bda2b785eaebeb4baa /source3/libsmb
parent54d355e581bc1c1bf8deb3c1973285de805743ba (diff)
downloadsamba-9f68ccb8027ffa9c9875ad2b327c33a1eeb3ffab.tar.gz
samba-9f68ccb8027ffa9c9875ad2b327c33a1eeb3ffab.tar.bz2
samba-9f68ccb8027ffa9c9875ad2b327c33a1eeb3ffab.zip
cleaning up a few compiler warngings
(This used to be commit 8ceefd5438a1071a262a7db234c9857fbad05147)
Diffstat (limited to 'source3/libsmb')
-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);