s3-smbcontrol: use correct PRINTER_NOTIFY flags.
authorGünther Deschner <gd@samba.org>
Wed, 18 Mar 2009 16:45:30 +0000 (17:45 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 18 Mar 2009 16:46:00 +0000 (17:46 +0100)
Guenther

source3/utils/smbcontrol.c

index 6ea200bfec5dcfb3d2771f101c5e851bc9a8d196..fc7d0aa360f87ef1364be37440b8b4d6caef664a 100644 (file)
@@ -669,11 +669,11 @@ static bool do_printnotify(struct messaging_context *msg_ctx,
                }
 
                if (strcmp(argv[3], "comment") == 0) {
-                       attribute = PRINTER_NOTIFY_COMMENT;
+                       attribute = PRINTER_NOTIFY_FIELD_COMMENT;
                } else if (strcmp(argv[3], "port") == 0) {
-                       attribute = PRINTER_NOTIFY_PORT_NAME;
+                       attribute = PRINTER_NOTIFY_FIELD_PORT_NAME;
                } else if (strcmp(argv[3], "driver") == 0) {
-                       attribute = PRINTER_NOTIFY_DRIVER_NAME;
+                       attribute = PRINTER_NOTIFY_FIELD_DRIVER_NAME;
                } else {
                        fprintf(stderr, "Invalid printer command '%s'\n",
                                argv[3]);