summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/queue.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2012-01-28 11:33:08 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2012-01-28 11:33:08 +0000
commit749c34bfd2e10250537cd775420114de8ff52afc (patch)
tree6fbc1251f94ca26fefbdd4e4e52c01914c31bc89 /usr.sbin/smtpd/queue.c
parentd7597ba98292ef9da362b2fd9d7f1f4c102ff997 (diff)
- introduce the scheduler_backend API
- introduce the scheduler_ramqueue backend - remove all occurences of ramqueue outside of the ramqueue backend - teach runner how to use the new API it is now possible to write custom schedulers ! ok eric@, ok chl@
Diffstat (limited to 'usr.sbin/smtpd/queue.c')
-rw-r--r--usr.sbin/smtpd/queue.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/queue.c b/usr.sbin/smtpd/queue.c
index c4ad440ff03..b91b3cbfd95 100644
--- a/usr.sbin/smtpd/queue.c
+++ b/usr.sbin/smtpd/queue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue.c,v 1.116 2012/01/13 21:58:35 eric Exp $ */
+/* $OpenBSD: queue.c,v 1.117 2012/01/28 11:33:07 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -48,7 +48,7 @@ queue_imsg(struct imsgev *iev, struct imsg *imsg)
{
struct submit_status ss;
struct envelope *e;
- struct ramqueue_batch *rq_batch;
+ struct mta_batch *mta_batch;
int fd, ret;
log_imsg(PROC_QUEUE, iev->proc, imsg);
@@ -139,10 +139,10 @@ queue_imsg(struct imsgev *iev, struct imsg *imsg)
if (iev->proc == PROC_MTA) {
switch (imsg->hdr.type) {
case IMSG_QUEUE_MESSAGE_FD:
- rq_batch = imsg->data;
- fd = queue_message_fd_r(Q_QUEUE, rq_batch->msgid);
+ mta_batch = imsg->data;
+ fd = queue_message_fd_r(Q_QUEUE, mta_batch->msgid);
imsg_compose_event(iev, IMSG_QUEUE_MESSAGE_FD, 0, 0,
- fd, rq_batch, sizeof *rq_batch);
+ fd, mta_batch, sizeof *mta_batch);
return;
case IMSG_QUEUE_DELIVERY_OK: