summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_printer.c
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/utils/net_rpc_printer.c
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/utils/net_rpc_printer.c')
-rw-r--r--source3/utils/net_rpc_printer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index 5c2c797b90..7348595c98 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -28,6 +28,7 @@
#include "../libcli/security/security.h"
#include "../libcli/registry/util_reg.h"
#include "libsmb/libsmb.h"
+#include "../libcli/smb/smbXcli_base.h"
/* support itanium as well */
static const struct print_architecture_table_node archi_table[]= {
@@ -1914,7 +1915,7 @@ NTSTATUS rpc_printer_migrate_drivers_internals(struct net_context *c,
/* open print$-share on the src server */
nt_status = connect_to_service(c, &cli_share_src,
- cli_state_remote_sockaddr(cli),
+ smbXcli_conn_remote_sockaddr(cli->conn),
cli_state_remote_name(cli),
"print$", "A:");
if (!NT_STATUS_IS_OK(nt_status))
@@ -1925,7 +1926,7 @@ NTSTATUS rpc_printer_migrate_drivers_internals(struct net_context *c,
/* open print$-share on the dst server */
nt_status = connect_to_service(c, &cli_share_dst,
- cli_state_remote_sockaddr(cli_dst),
+ smbXcli_conn_remote_sockaddr(cli_dst->conn),
cli_state_remote_name(cli_dst),
"print$", "A:");
if (!NT_STATUS_IS_OK(nt_status))