From 215a3549f46eeef56bb81cf9b75fc133ab610219 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 29 Apr 1997 21:28:57 +0000 Subject: Hacks for avoiding compiler warnings under SunOS. svn path=/trunk/; revision=978 --- driver.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 6d308314..d92bc10b 100644 --- a/driver.c +++ b/driver.c @@ -37,6 +37,10 @@ #include "mx.h" #endif /* HAVE_GETHOSTBYNAME */ +#ifdef SUNOS +#include +#endif + #ifdef KERBEROS_V4 #include #include @@ -481,7 +485,7 @@ char *realname; /* real name of host */ set_timeout(ctl->server.timeout); /* leave extra room for reply_hack to play with */ - line = realloc(line, strlen(line) + strlen(buf) + HOSTLEN + 1); + line = (char *) realloc(line, strlen(line) + strlen(buf) + HOSTLEN + 1); strcat(line, buf); if (line[0] == '\r' && line[1] == '\n') break; @@ -548,7 +552,7 @@ char *realname; /* real name of host */ int newlen; newlen = oldlen + strlen(line); - headers = realloc(headers, newlen + 1); + headers = (char *) realloc(headers, newlen + 1); if (headers == NULL) return(PS_IOERR); strcpy(headers + oldlen, line); -- cgit v1.2.3