summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/appl/mailquery/ChangeLog7
-rw-r--r--src/appl/mailquery/mailquery.c12
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 <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 9062127cc..b2102b037 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");
-}
-
-