s4-smbtorture: fix spoolss notify test for notify type changes.
authorGünther Deschner <gd@samba.org>
Tue, 17 Mar 2009 17:03:36 +0000 (18:03 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 17 Mar 2009 18:07:37 +0000 (19:07 +0100)
Guenther

source4/torture/rpc/spoolss_notify.c

index 048f255ffc89ff4166684013aba80164a819f989..cb875c9eee7caa3c0f646b1ef4d3f3d729ef429c 100644 (file)
@@ -252,12 +252,12 @@ static bool test_RFFPCNEx(struct torture_context *tctx,
        t1.flags = 0;
        t1.count = 2;
        t1.types = talloc_zero_array(tctx, struct spoolss_NotifyOptionType, 2);
-       t1.types[0].type = SPOOLSS_NOTIFY_PRINTER;
+       t1.types[0].type = PRINTER_NOTIFY_TYPE;
        t1.types[0].count = 1;
        t1.types[0].fields = talloc_array(t1.types, enum spoolss_Field, 1);
        t1.types[0].fields[0] = SPOOLSS_FIELD_SERVER_NAME;
 
-       t1.types[1].type = SPOOLSS_NOTIFY_JOB;
+       t1.types[1].type = JOB_NOTIFY_TYPE;
        t1.types[1].count = 1;
        t1.types[1].fields = talloc_array(t1.types, enum spoolss_Field, 1);
        t1.types[1].fields[0] = SPOOLSS_FIELD_PRINTER_NAME;