aboutsummaryrefslogtreecommitdiffstats
path: root/src/byte_source.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/byte_source.c')
-rw-r--r--src/byte_source.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/byte_source.c b/src/byte_source.c
index 59ab673f..0153c08b 100644
--- a/src/byte_source.c
+++ b/src/byte_source.c
@@ -15,13 +15,8 @@
*/
#include "byte_source.h"
+#include "system.h"
-#include "serd_internal.h"
-
-#include "serd/serd.h"
-
-#include <stdbool.h>
-#include <stdint.h>
#include <stdlib.h>
#include <string.h>
@@ -65,7 +60,7 @@ serd_byte_source_open_source(SerdByteSource* source,
source->from_stream = true;
if (page_size > 1) {
- source->file_buf = (uint8_t*)serd_bufalloc(page_size);
+ source->file_buf = (uint8_t*)serd_allocate_buffer(page_size);
source->read_buf = source->file_buf;
memset(source->file_buf, '\0', page_size);
} else {