s3:libsmb: remove unused cli_set_port()
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Jul 2011 14:37:25 +0000 (16:37 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 11 Jul 2011 14:39:15 +0000 (16:39 +0200)
metze

source3/include/client.h
source3/libsmb/cliconnect.c
source3/libsmb/clientgen.c
source3/libsmb/proto.h

index b01136be379ef7c567cd6ca0e97fe30b4e975778..eada7924039bb9d4a5e24a9e24c208f0181c621b 100644 (file)
@@ -51,7 +51,6 @@ struct cli_state {
         * A list of subsidiary connections for DFS.
         */
         struct cli_state *prev, *next;
-       int port;
        int fd;
        uint16 cnum;
        uint16 pid;
index 515bc3ff071315e575ed5b2663fb38d7d8f7dc75..e5d8700d598e9505d394cd3ebe512596a8de768e 100644 (file)
@@ -2884,7 +2884,6 @@ NTSTATUS cli_connect_nb(const char *host, struct sockaddr_storage *pss,
                goto fail;
        }
        cli->fd = fd;
-       cli->port = port;
 
        length = sizeof(cli->src_ss);
        ret = getsockname(fd, (struct sockaddr *)(void *)&cli->src_ss,
index 2380ceb32ca088531146115ebd7fa4a3c074ffc3..bcb1215579e11e478bbe2e3fcd4948f63e233003 100644 (file)
@@ -50,15 +50,6 @@ unsigned int cli_set_timeout(struct cli_state *cli, unsigned int timeout)
        return old_timeout;
 }
 
-/****************************************************************************
- Change the port number used to call on.
-****************************************************************************/
-
-void cli_set_port(struct cli_state *cli, int port)
-{
-       cli->port = port;
-}
-
 /****************************************************************************
  convenience routine to find if we negotiated ucs2
 ****************************************************************************/
@@ -191,7 +182,6 @@ struct cli_state *cli_initialise_ex(int signing_state)
        if (!cli->dfs_mountpoint) {
                goto error;
        }
-       cli->port = 0;
        cli->fd = -1;
        cli->raw_status = NT_STATUS_INTERNAL_ERROR;
        cli->cnum = -1;
index 151df4043616db0fdffd4ca1d1a4bd9b8dedfb78..abb201a619460d415cecb796a67f871bd98844f6 100644 (file)
@@ -154,7 +154,6 @@ bool cli_check_msdfs_proxy(TALLOC_CTX *ctx,
 
 int cli_set_message(char *buf,int num_words,int num_bytes,bool zero);
 unsigned int cli_set_timeout(struct cli_state *cli, unsigned int timeout);
-void cli_set_port(struct cli_state *cli, int port);
 void cli_setup_packet_buf(struct cli_state *cli, char *buf);
 NTSTATUS cli_set_domain(struct cli_state *cli, const char *domain);
 NTSTATUS cli_set_username(struct cli_state *cli, const char *username);