diff options
author | Michael Adam <obnox@samba.org> | 2009-08-07 10:06:12 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-08-07 10:06:12 +0200 |
commit | c535939a9c0c779f41cbe6d7eec6f94f19ff41de (patch) | |
tree | 223a1ff5c8b1429aadb7ce1d797104d3eeecce9e /src | |
parent | b450ad76ff1debfe2aa709e3a784f92cb382c502 (diff) | |
download | tinyproxy-c535939a9c0c779f41cbe6d7eec6f94f19ff41de.tar.gz tinyproxy-c535939a9c0c779f41cbe6d7eec6f94f19ff41de.zip |
write_message(): fix implicit cast warnings.
Michael
Diffstat (limited to '')
-rw-r--r-- | src/network.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |