From fde28f60a7cc6f1cac487b0365e2a2be1fb59f49 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 13 Mar 1997 09:37:46 +0000 Subject: Added `set daemon'. svn path=/trunk/; revision=930 --- interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'interface.c') diff --git a/interface.c b/interface.c index 189c5565..368eb250 100644 --- a/interface.c +++ b/interface.c @@ -24,6 +24,7 @@ #include #include #include +#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)) -- cgit v1.2.3