diff options
author | Günther Deschner <gd@samba.org> | 2008-02-18 13:45:36 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-18 13:45:36 +0100 |
commit | 144f41e7c3c97afede71ed771acd130f9018f0df (patch) | |
tree | dc3258c25eaef4cbf05db8f06c0820a29b0a3e40 /source/rpc_client | |
parent | 2746e88c5c4a9e859356d5c53106eba0c2cd7cbe (diff) | |
download | samba-144f41e7c3c97afede71ed771acd130f9018f0df.tar.gz samba-144f41e7c3c97afede71ed771acd130f9018f0df.tar.xz samba-144f41e7c3c97afede71ed771acd130f9018f0df.zip |
Remove unused marshalling for SVCCTL_GET_DISPLAY_NAME.
Guenther
Diffstat (limited to 'source/rpc_client')
-rw-r--r-- | source/rpc_client/cli_svcctl.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/source/rpc_client/cli_svcctl.c b/source/rpc_client/cli_svcctl.c index 0a5cf7674b9..cdd1b93aaa4 100644 --- a/source/rpc_client/cli_svcctl.c +++ b/source/rpc_client/cli_svcctl.c @@ -290,48 +290,3 @@ WERROR rpccli_svcctl_control_service( struct rpc_pipe_client *cli, TALLOC_CTX *m return out.status; } - - -/******************************************************************* -*******************************************************************/ - -WERROR rpccli_svcctl_get_dispname( struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - POLICY_HND *hService, fstring displayname ) -{ - SVCCTL_Q_GET_DISPLAY_NAME in; - SVCCTL_R_GET_DISPLAY_NAME out; - prs_struct qbuf, rbuf; - - ZERO_STRUCT(in); - ZERO_STRUCT(out); - - memcpy( &in.handle, hService, sizeof(POLICY_HND) ); - in.display_name_len = 0; - - CLI_DO_RPC_WERR( cli, mem_ctx, PI_SVCCTL, SVCCTL_GET_DISPLAY_NAME, - in, out, - qbuf, rbuf, - svcctl_io_q_get_display_name, - svcctl_io_r_get_display_name, - WERR_GENERAL_FAILURE ); - - /* second time with correct buffer size...should be ok */ - - if ( W_ERROR_EQUAL( out.status, WERR_INSUFFICIENT_BUFFER ) ) { - in.display_name_len = out.display_name_len; - - CLI_DO_RPC_WERR( cli, mem_ctx, PI_SVCCTL, SVCCTL_GET_DISPLAY_NAME, - in, out, - qbuf, rbuf, - svcctl_io_q_get_display_name, - svcctl_io_r_get_display_name, - WERR_GENERAL_FAILURE ); - } - - if ( !W_ERROR_IS_OK( out.status ) ) - return out.status; - - rpcstr_pull( displayname, out.displayname.buffer, sizeof(displayname), -1, STR_TERMINATE ); - - return out.status; -} |