diff options
| author | John Carr <jfc@mit.edu> | 1992-02-23 12:31:56 +0000 |
|---|---|---|
| committer | John Carr <jfc@mit.edu> | 1992-02-23 12:31:56 +0000 |
| commit | 8cd939313d4b0ad8e74e288b1fbf70837394fea2 (patch) | |
| tree | 51f6edced0a7788d3f6bc8cf7280d3e732d895f4 /src | |
| parent | 51e4d85b651b6a8052ce3fa3eebfd7131c8a9f17 (diff) | |
| download | krb5-8cd939313d4b0ad8e74e288b1fbf70837394fea2.tar.gz krb5-8cd939313d4b0ad8e74e288b1fbf70837394fea2.tar.xz krb5-8cd939313d4b0ad8e74e288b1fbf70837394fea2.zip | |
#include <stdio.h> first; use correct cast for call to connect
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2248 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/appl/movemail/movemail.c | 4 |
1 files 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 <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/file.h> @@ -339,7 +340,6 @@ xmalloc (size) #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> -#include <stdio.h> #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); |
