diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2023-05-30 15:52:01 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-05-30 16:23:07 +0200 |
commit | ae4d934c53cdc4cc5ec3d4535cd5138fdf9b25cb (patch) | |
tree | 27a5e3f0ae38f046625ee58a716bdf069c81b24b /proto/bmp/buffer.c | |
parent | c1821a9aba3c7fbdb48cee7d86e4661317900a0a (diff) |
BMP: Minor formatting cleanups
Based on patches from Michal Zagorski <mzagorsk@akamai.com> co-authored
with Pawel Maslanka <pmaslank@akamai.com>. Thanks!
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 +} |