summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/parser.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2013-10-25 18:58:11 +0000
committerEric Faurot <eric@cvs.openbsd.org>2013-10-25 18:58:11 +0000
commitc916cfb2bbc330d4419049d33e5888b3f427e48e (patch)
tree41a6a46c58262b70e4de44ceaafa404dacc1bdb5 /usr.sbin/smtpd/parser.c
parentbee20e9a4e2f481f6762d7a8ccc33627df1c9893 (diff)
Improve reporting in smtpctl and a few fixes.
When sending a request to the scheduler, wait for the success/failure report from the scheduler. Simplify the code by introducing generic functions for interruptible iteration over envelopes. Report the total number of affected envelopes for schedule, pause, resume and remove envelope operations.
Diffstat (limited to 'usr.sbin/smtpd/parser.c')
-rw-r--r--usr.sbin/smtpd/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/parser.c b/usr.sbin/smtpd/parser.c
index a8d174a9956..aea11b37921 100644
--- a/usr.sbin/smtpd/parser.c
+++ b/usr.sbin/smtpd/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.35 2013/07/19 13:41:23 eric Exp $ */
+/* $OpenBSD: parser.c,v 1.36 2013/10/25 18:58:10 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@ -215,7 +215,7 @@ cmd_run(int argc, char **argv)
if (node->cmd == NULL)
goto fail;
- return (node->cmd(np, param));
+ return (node->cmd(np, np ? param : NULL));
fail:
fprintf(stderr, "possibilities are:\n");