From: John Carr Date: Sun, 23 Feb 1992 12:31:56 +0000 (+0000) Subject: #include first; use correct cast for call to connect X-Git-Tag: krb5-1.0-beta2~214 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8cd939313d4b0ad8e74e288b1fbf70837394fea2;p=krb5.git #include first; use correct cast for call to connect git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2248 dc483132-0cff-0310-8789-dd5450dbe970 --- 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);