aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-11-08 16:53:54 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-11-08 16:53:54 +0000
commit45bcf00ee95d474f989d5594da378116d63702be (patch)
treebaeb26c4b1f80cd7babb0cb28950a682b71b5fa5 /socket.c
parent63e45826907ea86d967c5903fc31fbde5977db73 (diff)
downloadfetchmail-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/socket.c b/socket.c
index c108b9b2..93a2be2f 100644
--- a/socket.c
+++ b/socket.c
@@ -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)
{