s3:smbcontrol: avoid using messaging_event_context()
authorStefan Metzmacher <metze@samba.org>
Mon, 16 Jan 2012 15:14:35 +0000 (16:14 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 17 Jan 2012 07:10:29 +0000 (08:10 +0100)
metze

source3/utils/smbcontrol.c

index 2f5d860526b72a1393295a4f399de91c41b819dd..5699f2330486238f1538f5d75b7e31cb55cd801b 100644 (file)
@@ -658,8 +658,7 @@ static bool do_printnotify(struct tevent_context *ev_ctx,
                        return False;
                }
 
-               notify_printer_status_byname(messaging_event_context(msg_ctx),
-                                            msg_ctx, argv[2],
+               notify_printer_status_byname(ev_ctx, msg_ctx, argv[2],
                                             PRINTER_STATUS_PAUSED);
 
                goto send;
@@ -672,8 +671,7 @@ static bool do_printnotify(struct tevent_context *ev_ctx,
                        return False;
                }
 
-               notify_printer_status_byname(messaging_event_context(msg_ctx),
-                                            msg_ctx, argv[2],
+               notify_printer_status_byname(ev_ctx, msg_ctx, argv[2],
                                             PRINTER_STATUS_OK);
 
                goto send;
@@ -690,7 +688,7 @@ static bool do_printnotify(struct tevent_context *ev_ctx,
                jobid = atoi(argv[3]);
 
                notify_job_status_byname(
-                       messaging_event_context(msg_ctx), msg_ctx,
+                       ev_ctx, msg_ctx,
                        argv[2], jobid, JOB_STATUS_PAUSED,
                        SPOOLSS_NOTIFY_MSG_UNIX_JOBID);
 
@@ -708,7 +706,7 @@ static bool do_printnotify(struct tevent_context *ev_ctx,
                jobid = atoi(argv[3]);
 
                notify_job_status_byname(
-                       messaging_event_context(msg_ctx), msg_ctx,
+                       ev_ctx, msg_ctx,
                        argv[2], jobid, JOB_STATUS_QUEUED, 
                        SPOOLSS_NOTIFY_MSG_UNIX_JOBID);
 
@@ -726,12 +724,12 @@ static bool do_printnotify(struct tevent_context *ev_ctx,
                jobid = atoi(argv[3]);
 
                notify_job_status_byname(
-                       messaging_event_context(msg_ctx), msg_ctx,
+                       ev_ctx, msg_ctx,
                        argv[2], jobid, JOB_STATUS_DELETING,
                        SPOOLSS_NOTIFY_MSG_UNIX_JOBID);
 
                notify_job_status_byname(
-                       messaging_event_context(msg_ctx), msg_ctx,
+                       ev_ctx, msg_ctx,
                        argv[2], jobid, JOB_STATUS_DELETING|
                        JOB_STATUS_DELETED,
                        SPOOLSS_NOTIFY_MSG_UNIX_JOBID);
@@ -760,8 +758,7 @@ static bool do_printnotify(struct tevent_context *ev_ctx,
                        return False;
                }
 
-               notify_printer_byname(messaging_event_context(msg_ctx),
-                                     msg_ctx, argv[2], attribute,
+               notify_printer_byname(ev_ctx, msg_ctx, argv[2], attribute,
                                      discard_const_p(char, argv[4]));
 
                goto send;