From 8cd939313d4b0ad8e74e288b1fbf70837394fea2 Mon Sep 17 00:00:00 2001 From: John Carr Date: Sun, 23 Feb 1992 12:31:56 +0000 Subject: [PATCH] #include first; use correct cast for call to connect git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2248 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/movemail/movemail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/appl/movemail/movemail.c b/src/appl/movemail/movemail.c index 89ace3fc8..995f3b353 100644 --- a/src/appl/movemail/movemail.c +++ b/src/appl/movemail/movemail.c @@ -50,6 +50,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ * */ +#include #include #include #include @@ -339,7 +340,6 @@ xmalloc (size) #include #include #include -#include #ifdef KERBEROS #define POP_SERVICE "pop" #ifdef KRB4 @@ -548,7 +548,7 @@ char *host; return(NOTOK); } - if (connect(s, (char *)&sin, sizeof sin) < 0) { + if (connect(s, (struct sockaddr *)&sin, sizeof sin) < 0) { sprintf(Errmsg, "error during connect: %s", get_errmsg()); close(s); return(NOTOK); -- 2.26.2