diff options
author | Theodore Tso <tytso@mit.edu> | 1994-08-18 18:19:49 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1994-08-18 18:19:49 +0000 |
commit | f0b2ef019ed2c1e0bcaac33929ed109aaa1d96a6 (patch) | |
tree | bfe6ac2adeddba5a127a80ba0c2a888579835c22 /src/appl/mailquery | |
parent | c71a47962719b10589df89b4202eb7624d52f101 (diff) | |
download | krb5-f0b2ef019ed2c1e0bcaac33929ed109aaa1d96a6.tar.gz krb5-f0b2ef019ed2c1e0bcaac33929ed109aaa1d96a6.tar.xz krb5-f0b2ef019ed2c1e0bcaac33929ed109aaa1d96a6.zip |
Move usage() before main() to solve redeclaration error
Add #include <string.h> to fix compiler kvetching.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4179 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/mailquery')
-rw-r--r-- | src/appl/mailquery/ChangeLog | 7 | ||||
-rw-r--r-- | 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 aa0e7864e4..2ed3824982 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 <string.h> 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 9062127cca..b2102b037a 100644 --- a/src/appl/mailquery/mailquery.c +++ b/src/appl/mailquery/mailquery.c @@ -27,6 +27,7 @@ #include <fcntl.h> #include <sys/file.h> #include <stdio.h> +#include <string.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #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"); -} - - |