From b9bfb27b66bb75007562fe135ffb4b1be9c4bd16 Mon Sep 17 00:00:00 2001 From: Jacek Masiulaniec Date: Thu, 29 Jan 2009 12:43:26 +0000 Subject: Common queue walking code for smtpd and smtpctl. Kills majority of showqueue.c, the remaining code was moved to queue_shared.c; ok gilles@ --- usr.sbin/smtpd/smtpctl.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr.sbin/smtpd/smtpctl.c') 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 @@ -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; -- cgit v1.2.3