diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-11-08 16:53:54 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-11-08 16:53:54 +0000 |
commit | 45bcf00ee95d474f989d5594da378116d63702be (patch) | |
tree | baeb26c4b1f80cd7babb0cb28950a682b71b5fa5 /socket.c | |
parent | 63e45826907ea86d967c5903fc31fbde5977db73 (diff) | |
download | fetchmail-45bcf00ee95d474f989d5594da378116d63702be.tar.gz fetchmail-45bcf00ee95d474f989d5594da378116d63702be.tar.bz2 fetchmail-45bcf00ee95d474f989d5594da378116d63702be.zip |
Easy bug fixes for this round.
svn path=/trunk/; revision=3543
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -340,7 +340,7 @@ int SockOpen(const char *host, int clientPort, const char *options, /* we'll accept a quad address */ #ifndef HAVE_INET_ATON - inaddr = inet_addr(host); + inaddr = inet_addr((char*)host); if (inaddr != INADDR_NONE) { memcpy(&ad.sin_addr, &inaddr, sizeof(inaddr)); @@ -370,7 +370,7 @@ int SockOpen(const char *host, int clientPort, const char *options, } #endif /* HAVE_INET_ATON */ else { - hp = gethostbyname(host); + hp = gethostbyname((char*)host); if (hp == NULL) { |