diff options
Diffstat (limited to 'proto/bmp/buffer.c')
-rw-r--r-- | proto/bmp/buffer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/proto/bmp/buffer.c b/proto/bmp/buffer.c index f471e08a..9e62e468 100644 --- a/proto/bmp/buffer.c +++ b/proto/bmp/buffer.c @@ -15,7 +15,6 @@ bmp_buffer_alloc(pool *ppool, const size_t n) buf.start = mb_alloc(ppool, n); buf.pos = buf.start; buf.end = buf.start + n; - return buf; } @@ -48,11 +47,9 @@ void bmp_put_data(buffer *buf, const void *src, const size_t n) { if (!n) - { return; - } bmp_buffer_need(buf, n); memcpy(buf->pos, src, n); buf->pos += n; -}
\ No newline at end of file +} |