summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_spoolss.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-04 16:47:10 +0100
committerGünther Deschner <gd@samba.org>2010-03-05 15:18:01 +0100
commitbecbb624eb90b84ff20b128de1aee5f5acfc3dbc (patch)
treeb53b6f34c3660e068e2dd75b5680831edc0bea60 /source3/rpcclient/cmd_spoolss.c
parenta99ac4f236d9a93d4ca8bd874cbab89b155c644a (diff)
downloadsamba-becbb624eb90b84ff20b128de1aee5f5acfc3dbc.tar.gz
s3-rpcclient: fix rpcclient after spoolss_EnumPrinterDataEx IDL change.
Guenther
Diffstat (limited to 'source3/rpcclient/cmd_spoolss.c')
-rw-r--r--source3/rpcclient/cmd_spoolss.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index 06bbbdf8233..b88ff10baa2 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -2870,9 +2870,7 @@ static WERROR cmd_spoolss_enum_data_ex( struct rpc_pipe_client *cli,
const char **argv)
{
WERROR result;
-#if 0
uint32_t i;
-#endif
const char *printername;
struct policy_handle hnd;
uint32_t count;
@@ -2906,13 +2904,14 @@ static WERROR cmd_spoolss_enum_data_ex( struct rpc_pipe_client *cli,
if (!W_ERROR_IS_OK(result)) {
goto done;
}
-#if 0
+
for (i=0; i < count; i++) {
display_printer_data(info[i].value_name,
info[i].type,
- info[i].data);
+ info[i].data->data,
+ info[i].data->length);
}
-#endif
+
done:
if (is_valid_policy_hnd(&hnd)) {
rpccli_spoolss_ClosePrinter(cli, mem_ctx, &hnd, NULL);