From f0b2ef019ed2c1e0bcaac33929ed109aaa1d96a6 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 18 Aug 1994 18:19:49 +0000 Subject: [PATCH] Move usage() before main() to solve redeclaration error Add #include to fix compiler kvetching. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4179 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/mailquery/ChangeLog | 7 +++++++ src/appl/mailquery/mailquery.c | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/appl/mailquery/ChangeLog b/src/appl/mailquery/ChangeLog index aa0e7864e..2ed382498 100644 --- a/src/appl/mailquery/ChangeLog +++ b/src/appl/mailquery/ChangeLog @@ -1,3 +1,10 @@ +Thu Aug 18 13:43:07 1994 Theodore Y. Ts'o (tytso at tsx-11) + + * mailquery.c: Move usage() before main() to solve redeclaration + error. + + * mailquery.c: Add #include to fix compiler kvetching. + Tue Aug 9 16:45:53 1994 Tom Yu (tlyu@dragons-lair) * poplib.c: fix stupid sterror bug diff --git a/src/appl/mailquery/mailquery.c b/src/appl/mailquery/mailquery.c index 9062127cc..b2102b037 100644 --- a/src/appl/mailquery/mailquery.c +++ b/src/appl/mailquery/mailquery.c @@ -27,6 +27,7 @@ #include #include #include +#include #ifdef HAVE_UNISTD_H #include #endif @@ -40,6 +41,11 @@ extern int pop_debug; int verbose = 0; char *exec_cmd; +void usage() +{ + fprintf(stderr, "usage: mailquery [-d] [-v] [-e cmd] [user[@host]]\n"); +} + main(argc, argv) int argc; char *argv[]; @@ -168,9 +174,3 @@ mailquery(mhost, user) return nbytes; } -void usage() -{ - fprintf(stderr, "usage: mailquery [-d] [-v] [-e cmd] [user[@host]]\n"); -} - - -- 2.26.2