r6149: Fixes bugs #2498 and 2484.
[samba.git] / source / utils / smbcontrol.c
index 154bc5b1ae429d8dde252c169e2dea031b621b5b..5a7b6548c29cb4ad0b07810fc2c3ef62b0dd1d6c 100644 (file)
@@ -428,7 +428,8 @@ static BOOL do_printnotify(const pid_t pid, const int argc, const char **argv)
                        return False;
                }
 
-               notify_printer_byname(argv[2], attribute, (char *) argv[4]);
+               notify_printer_byname(argv[2], attribute,
+                                      CONST_DISCARD(char *, argv[4]));
 
                goto send;
        }