summaryrefslogtreecommitdiffstats
path: root/source3/utils/smbcontrol.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-01-16 16:14:35 +0100
committerStefan Metzmacher <metze@samba.org>2012-01-17 08:10:29 +0100
commitecd8fcdb1eaf7ef4efa7d26dcef1fb4a8950fd8e (patch)
tree88072216cd8ed2a5b80f3fe07113a5d062fc2b28 /source3/utils/smbcontrol.c
parent77d1053c294f0b25d0c6c03d53acfe7b00f22ef5 (diff)
downloadsamba-ecd8fcdb1eaf7ef4efa7d26dcef1fb4a8950fd8e.tar.gz
samba-ecd8fcdb1eaf7ef4efa7d26dcef1fb4a8950fd8e.tar.xz
samba-ecd8fcdb1eaf7ef4efa7d26dcef1fb4a8950fd8e.zip
s3:smbcontrol: avoid using messaging_event_context()
metze
Diffstat (limited to 'source3/utils/smbcontrol.c')
-rw-r--r--source3/utils/smbcontrol.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 2f5d860526..5699f23304 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -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;