summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorLuk Claes <luk@debian.org>2012-05-19 17:15:23 +0200
committerStefan Metzmacher <metze@samba.org>2012-05-28 14:49:44 +0200
commit987e81b0ee681a25a8e3308169626a2206e3fd26 (patch)
tree9448f3f6d070795687a8bd845f22ee5584da9ac2 /source3/libsmb
parent8e24e7f6b81871876e14f73424fe44bf26280560 (diff)
downloadsamba-987e81b0ee681a25a8e3308169626a2206e3fd26.tar.gz
samba-987e81b0ee681a25a8e3308169626a2206e3fd26.tar.bz2
samba-987e81b0ee681a25a8e3308169626a2206e3fd26.zip
s3:libsmb: get rid of cli_state_*_sockaddr
Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c10
-rw-r--r--source3/libsmb/proto.h2
-rw-r--r--source3/libsmb/smb2cli_tcon.c2
3 files changed, 1 insertions, 13 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 3c15915375..53c2d36de2 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -360,16 +360,6 @@ void cli_shutdown(struct cli_state *cli)
_cli_shutdown(cli);
}
-const struct sockaddr_storage *cli_state_local_sockaddr(struct cli_state *cli)
-{
- return smbXcli_conn_local_sockaddr(cli->conn);
-}
-
-const struct sockaddr_storage *cli_state_remote_sockaddr(struct cli_state *cli)
-{
- return smbXcli_conn_remote_sockaddr(cli->conn);
-}
-
const char *cli_state_remote_name(struct cli_state *cli)
{
return smbXcli_conn_remote_name(cli->conn);
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 42c368be30..2ece3378a1 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -171,8 +171,6 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx,
bool cli_state_encryption_on(struct cli_state *cli);
void cli_nt_pipes_close(struct cli_state *cli);
void cli_shutdown(struct cli_state *cli);
-const struct sockaddr_storage *cli_state_local_sockaddr(struct cli_state *cli);
-const struct sockaddr_storage *cli_state_remote_sockaddr(struct cli_state *cli);
const char *cli_state_remote_name(struct cli_state *cli);
const char *cli_state_remote_realm(struct cli_state *cli);
uint16_t cli_state_get_vc_num(struct cli_state *cli);
diff --git a/source3/libsmb/smb2cli_tcon.c b/source3/libsmb/smb2cli_tcon.c
index 8aa2a31296..c3f8fcc441 100644
--- a/source3/libsmb/smb2cli_tcon.c
+++ b/source3/libsmb/smb2cli_tcon.c
@@ -52,7 +52,7 @@ struct tevent_req *smb2cli_tcon_send(TALLOC_CTX *mem_ctx,
}
state->cli = cli;
- print_sockaddr(srv_ip, sizeof(srv_ip), cli_state_remote_sockaddr(cli));
+ print_sockaddr(srv_ip, sizeof(srv_ip), smbXcli_conn_remote_sockaddr(cli->conn));
tcon_share = talloc_asprintf(state, "\\\\%s\\%s",
srv_ip, share);