summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/ntpd/ntp_intres.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/ntpd/ntp_intres.c')
-rw-r--r--contrib/ntp/ntpd/ntp_intres.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/ntp/ntpd/ntp_intres.c b/contrib/ntp/ntpd/ntp_intres.c
index 9653fdd..b6cd45b 100644
--- a/contrib/ntp/ntpd/ntp_intres.c
+++ b/contrib/ntp/ntpd/ntp_intres.c
@@ -20,6 +20,7 @@
# include <config.h>
#endif
+#include "ntp_machine.h"
#include "ntpd.h"
#include "ntp_io.h"
#include "ntp_request.h"
@@ -515,7 +516,7 @@ findhostaddr(
msyslog(LOG_INFO, "findhostaddr: address resolved.");
#endif
s = strlen(hp->h_name) + 1;
- cp = emalloc(s);
+ cp = (char *)emalloc(s);
strcpy(cp, hp->h_name);
entry->ce_name = cp;
}
OpenPOWER on IntegriCloud