write_message(): fix implicit cast warnings.
Michael
This commit is contained in:
parent
b450ad76ff
commit
c535939a9c
@ -98,7 +98,7 @@ write_message (int fd, const char *fmt, ...)
|
|||||||
char *buf, *tmpbuf;
|
char *buf, *tmpbuf;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
if ((buf = safemalloc (size)) == NULL)
|
if ((buf = (char *)safemalloc (size)) == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
@ -119,7 +119,7 @@ write_message (int fd, const char *fmt, ...)
|
|||||||
/* twice the old size (glibc2.0) */
|
/* twice the old size (glibc2.0) */
|
||||||
size *= 2;
|
size *= 2;
|
||||||
|
|
||||||
if ((tmpbuf = saferealloc (buf, size)) == NULL)
|
if ((tmpbuf = (char *)saferealloc (buf, size)) == NULL)
|
||||||
{
|
{
|
||||||
safefree (buf);
|
safefree (buf);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user