diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-11-07 12:19:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-11-07 12:20:17 +0000 |
commit | a64a253794ac64cb40befee54db53bde17dd0d49 (patch) | |
tree | c1024acc5f6e508814b944d99f112259bb28b1be /libnetdata/buffer/buffer.c | |
parent | New upstream version 1.10.0+dfsg (diff) | |
download | netdata-upstream/1.11.0+dfsg.tar.xz netdata-upstream/1.11.0+dfsg.zip |
New upstream version 1.11.0+dfsgupstream/1.11.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | libnetdata/buffer/buffer.c (renamed from src/web_buffer.c) | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/web_buffer.c b/libnetdata/buffer/buffer.c index 50c76f6d6..50672324b 100644 --- a/src/web_buffer.c +++ b/libnetdata/buffer/buffer.c @@ -1,4 +1,6 @@ -#include "common.h" +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "../libnetdata.h" #define BUFFER_OVERFLOW_EOF "EOF" @@ -379,8 +381,7 @@ void buffer_free(BUFFER *b) { freez(b); } -void buffer_increase(BUFFER *b, size_t free_size_required) -{ +void buffer_increase(BUFFER *b, size_t free_size_required) { buffer_overflow_check(b); size_t left = b->size - b->len; |