diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-22 16:46:16 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-22 17:06:10 +0200 |
commit | 3d675f1219ada8d6438f411ee433038a1c91838c (patch) | |
tree | a2e21057c284e8e14e3fb8b1ae8d6995d2190597 | |
parent | 540cd1ac96023646f3facc636538ccef124917be (diff) | |
download | samba-3d675f1219ada8d6438f411ee433038a1c91838c.tar.gz samba-3d675f1219ada8d6438f411ee433038a1c91838c.tar.bz2 samba-3d675f1219ada8d6438f411ee433038a1c91838c.zip |
s3:net_rap: make use of cli_state_remote_name()
metze
-rw-r--r-- | source3/utils/net_rap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c index 36f6d33197..67e6416cfa 100644 --- a/source3/utils/net_rap.c +++ b/source3/utils/net_rap.c @@ -702,7 +702,7 @@ static int rap_printq_info(struct net_context *c, int argc, const char **argv) if (!NT_STATUS_IS_OK(net_make_ipc_connection(c, 0, &cli))) return -1; - d_printf(PRINTQ_ENUM_DISPLAY, cli->desthost); /* list header */ + d_printf(PRINTQ_ENUM_DISPLAY, cli_state_remote_name(cli)); /* list header */ ret = cli_NetPrintQGetInfo(cli, argv[0], enum_queue, enum_jobs); cli_shutdown(cli); return ret; @@ -763,7 +763,7 @@ int net_rap_printq(struct net_context *c, int argc, const char **argv) if (!NT_STATUS_IS_OK(net_make_ipc_connection(c, 0, &cli))) return -1; - d_printf(PRINTQ_ENUM_DISPLAY, cli->desthost); /* list header */ + d_printf(PRINTQ_ENUM_DISPLAY, cli_state_remote_name(cli)); /* list header */ ret = cli_NetPrintQEnum(cli, enum_queue, enum_jobs); cli_shutdown(cli); return ret; |