buffer: add two explicit casts to reduce compiler warnings in makenewline().
Michael
This commit is contained in:
parent
25344751eb
commit
f5c80119ca
@ -66,11 +66,11 @@ makenewline (unsigned char *data, size_t length)
|
|||||||
assert (data != NULL);
|
assert (data != NULL);
|
||||||
assert (length > 0);
|
assert (length > 0);
|
||||||
|
|
||||||
newline = safemalloc (sizeof (struct bufline_s));
|
newline = (struct bufline_s *)safemalloc (sizeof (struct bufline_s));
|
||||||
if (!newline)
|
if (!newline)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
newline->string = safemalloc (length);
|
newline->string = (unsigned char *)safemalloc (length);
|
||||||
if (!newline->string)
|
if (!newline->string)
|
||||||
{
|
{
|
||||||
safefree (newline);
|
safefree (newline);
|
||||||
|
Loading…
Reference in New Issue
Block a user