diff options
author | Michael Adam <obnox@samba.org> | 2009-08-04 14:48:16 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-08-04 23:47:27 +0200 |
commit | f5c80119ca090a9238c68feea616f6227e0b9f65 (patch) | |
tree | 50412e6e9ce0b3af0ff77b1b22c18bd52ae023b9 /src | |
parent | 25344751eb629e1d646535a4cfe5899e9a35727c (diff) |
buffer: add two explicit casts to reduce compiler warnings in makenewline().
Michael
Diffstat (limited to 'src')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index 853fb86..8b2d33a 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -66,11 +66,11 @@ makenewline (unsigned char *data, size_t length) assert (data != NULL); assert (length > 0); - newline = safemalloc (sizeof (struct bufline_s)); + newline = (struct bufline_s *)safemalloc (sizeof (struct bufline_s)); if (!newline) return NULL; - newline->string = safemalloc (length); + newline->string = (unsigned char *)safemalloc (length); if (!newline->string) { safefree (newline); |