From d30bf6281121e37374fdfe7063285dd1b9c44b1e Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Sun, 14 Aug 1994 04:14:00 +0000 Subject: [PATCH] test for -lsocket -lnsl strchr not index fix argument decls git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4130 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/movemail/configure.in | 2 ++ src/appl/movemail/movemail.c | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/appl/movemail/configure.in b/src/appl/movemail/configure.in index 6b79b53c8..a8efe1da8 100644 --- a/src/appl/movemail/configure.in +++ b/src/appl/movemail/configure.in @@ -3,6 +3,8 @@ WITH_CCOPTS AC_SET_BUILDTOP CONFIG_RULES KRB_INCLUDE +AC_HAVE_LIBRARY(socket) +AC_HAVE_LIBRARY(nsl) AC_PROG_INSTALL WITH_KRB5ROOT AC_OUTPUT(Makefile,[EXTRA_RULES]) diff --git a/src/appl/movemail/movemail.c b/src/appl/movemail/movemail.c index 1fa4a4b2e..ee05d1539 100644 --- a/src/appl/movemail/movemail.c +++ b/src/appl/movemail/movemail.c @@ -143,7 +143,7 @@ main (argc, argv) { int status; char *user; - user = (char *) rindex (inname, ':') + 1; + user = (char *) strrchr (inname, ':') + 1; status = popmail (user, outname); exit (status); } @@ -534,7 +534,6 @@ char *host; krb5_ccache ccdef; krb5_principal client, server; krb5_error *err_ret = NULL; - register char *cp; char *hostname; #endif /* KRB5 */ #endif /* KERBEROS */ @@ -656,6 +655,7 @@ char *host; pop_command(fmt, a, b, c, d) char *fmt; +char *a, *b, *c, *d; { char buf[128]; @@ -703,7 +703,9 @@ int *nmsgs, *nbytes; } pop_retr(msgno, action, arg) +int msgno; int (*action)(); +void* arg; /* may always be FILE* -- eichin -- XXX */ { char buf[1024]; -- 2.26.2