aboutsummaryrefslogtreecommitdiffstats
path: root/interface.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-03-13 09:37:46 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-03-13 09:37:46 +0000
commitfde28f60a7cc6f1cac487b0365e2a2be1fb59f49 (patch)
tree691cea2ead6a4d5319d5fd0af2a5d156e3edb474 /interface.c
parent87ad588dd2a76dde9de03681f4c4ec63d789abe2 (diff)
downloadfetchmail-fde28f60a7cc6f1cac487b0365e2a2be1fb59f49.tar.gz
fetchmail-fde28f60a7cc6f1cac487b0365e2a2be1fb59f49.tar.bz2
fetchmail-fde28f60a7cc6f1cac487b0365e2a2be1fb59f49.zip
Added `set daemon'.
svn path=/trunk/; revision=930
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index 189c5565..368eb250 100644
--- a/interface.c
+++ b/interface.c
@@ -24,6 +24,7 @@
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <net/if.h>
+#include "config.h"
#include "fetchmail.h"
typedef struct {
@@ -121,7 +122,7 @@ void interface_parse(char *buf, struct hostdata *hp)
*cp2++ = '\000';
/* convert IP address and netmask */
- hp->interface_pair = xmalloc(sizeof(struct interface_pair_s));
+ hp->interface_pair = (struct interface_pair_s *)xmalloc(sizeof(struct interface_pair_s));
if (!inet_aton(cp1, &hp->interface_pair->interface_address))
(void) error(PS_SYNTAX, 0, "invalid IP interface address");
if (!inet_aton(cp2, &hp->interface_pair->interface_mask))