summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpctl.c
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-01-29 12:43:26 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-01-29 12:43:26 +0000
commitb9bfb27b66bb75007562fe135ffb4b1be9c4bd16 (patch)
tree3e55179a54e9e6ef1a8738c757431a88ef0ac674 /usr.sbin/smtpd/smtpctl.c
parent396bc3cb8b875e7ec1ce1ff0020dd352ae7aecbe (diff)
Common queue walking code for smtpd and smtpctl. Kills majority of showqueue.c,
the remaining code was moved to queue_shared.c; ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpctl.c')
-rw-r--r--usr.sbin/smtpd/smtpctl.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/smtpctl.c b/usr.sbin/smtpd/smtpctl.c
index 056de4d1f03..42f150be901 100644
--- a/usr.sbin/smtpd/smtpctl.c
+++ b/usr.sbin/smtpd/smtpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpctl.c,v 1.6 2009/01/27 22:48:29 gilles Exp $ */
+/* $OpenBSD: smtpctl.c,v 1.7 2009/01/29 12:43:25 jacekm Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -44,8 +44,6 @@
__dead void usage(void);
int show_command_output(struct imsg*);
-void show_queue(int);
-void show_runqueue(int);
int enqueue(int, char **);
struct imsgname {
@@ -112,10 +110,10 @@ main(int argc, char *argv[])
/* handle "disconnected" commands */
switch (res->action) {
case SHOW_QUEUE:
- show_queue(0);
+ show_queue(PATH_QUEUE, 0);
break;
case SHOW_RUNQUEUE:
- show_runqueue(0);
+ show_queue(PATH_RUNQUEUE, 0);
break;
default:
goto connected;