From 3758f06d0f56a1ff86073e91c584e0153d53fd9e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sun, 17 Feb 2008 23:17:51 +0100 Subject: Use pidl for _PNP_GetVersion(). Guenther (This used to be commit 5300ff01b9098ccd78cb38b4d6abc85b2d340a55) --- source3/rpc_server/srv_ntsvcs.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'source3/rpc_server/srv_ntsvcs.c') diff --git a/source3/rpc_server/srv_ntsvcs.c b/source3/rpc_server/srv_ntsvcs.c index 0734a60b4d..ec65919646 100644 --- a/source3/rpc_server/srv_ntsvcs.c +++ b/source3/rpc_server/srv_ntsvcs.c @@ -48,23 +48,7 @@ static bool proxy_ntsvcs_call(pipes_struct *p, uint8_t opnum) static bool api_ntsvcs_get_version(pipes_struct *p) { - NTSVCS_Q_GET_VERSION q_u; - NTSVCS_R_GET_VERSION r_u; - prs_struct *data = &p->in_data.data; - prs_struct *rdata = &p->out_data.rdata; - - ZERO_STRUCT(q_u); - ZERO_STRUCT(r_u); - - if(!ntsvcs_io_q_get_version("", &q_u, data, 0)) - return False; - - r_u.status = _ntsvcs_get_version(p, &q_u, &r_u); - - if(!ntsvcs_io_r_get_version("", &r_u, rdata, 0)) - return False; - - return True; + return proxy_ntsvcs_call(p, NDR_PNP_GETVERSION); } /******************************************************************* -- cgit