summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-18 16:10:52 +0100
committerGünther Deschner <gd@samba.org>2009-03-18 16:46:42 +0100
commit8b730ca1d8431d8d1eddee9523c64e60e06bc59c (patch)
tree29ec9245094c6881a9862c28cd30afbe8b17edb9
parent9744a7058c1f4805c9ca12080fd8ccffe3a038b8 (diff)
downloadsamba-8b730ca1d8431d8d1eddee9523c64e60e06bc59c.tar.gz
samba-8b730ca1d8431d8d1eddee9523c64e60e06bc59c.tar.bz2
samba-8b730ca1d8431d8d1eddee9523c64e60e06bc59c.zip
s3-rpcclient: fix spoolss notify test after spoolss_Field changes.
Guenther
-rw-r--r--source3/rpcclient/cmd_spoolss.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index ed877d0e6b..3dc88af7f1 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -2700,21 +2700,21 @@ static WERROR cmd_spoolss_rffpcnex(struct rpc_pipe_client *cli,
option.types[0].type = PRINTER_NOTIFY_TYPE;
option.types[0].count = 1;
- option.types[0].fields = talloc_array(mem_ctx, enum spoolss_Field, 1);
+ option.types[0].fields = talloc_array(mem_ctx, union spoolss_Field, 1);
if (option.types[0].fields == NULL) {
result = WERR_NOMEM;
goto done;
}
- option.types[0].fields[0] = PRINTER_NOTIFY_SERVER_NAME;
+ option.types[0].fields[0].field = PRINTER_NOTIFY_SERVER_NAME;
option.types[1].type = JOB_NOTIFY_TYPE;
option.types[1].count = 1;
- option.types[1].fields = talloc_array(mem_ctx, enum spoolss_Field, 1);
+ option.types[1].fields = talloc_array(mem_ctx, union spoolss_Field, 1);
if (option.types[1].fields == NULL) {
result = WERR_NOMEM;
goto done;
}
- option.types[1].fields[0] = JOB_NOTIFY_PRINTER_NAME;
+ option.types[1].fields[0].field = JOB_NOTIFY_PRINTER_NAME;
clientname = talloc_asprintf(mem_ctx, "\\\\%s", global_myname());
if (!clientname) {