From c535939a9c0c779f41cbe6d7eec6f94f19ff41de Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 7 Aug 2009 10:06:12 +0200 Subject: write_message(): fix implicit cast warnings. Michael --- src/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/network.c b/src/network.c index 60ec9e8..d4d26c8 100644 --- a/src/network.c +++ b/src/network.c @@ -98,7 +98,7 @@ write_message (int fd, const char *fmt, ...) char *buf, *tmpbuf; va_list ap; - if ((buf = safemalloc (size)) == NULL) + if ((buf = (char *)safemalloc (size)) == NULL) return -1; while (1) @@ -119,7 +119,7 @@ write_message (int fd, const char *fmt, ...) /* twice the old size (glibc2.0) */ size *= 2; - if ((tmpbuf = saferealloc (buf, size)) == NULL) + if ((tmpbuf = (char *)saferealloc (buf, size)) == NULL) { safefree (buf); return -1; -- cgit v1.2.3