From 005b738a2a3ee60cdf3f4f0be1c6ab0f82b3ae38 Mon Sep 17 00:00:00 2001 From: Richard Knight Date: Sun, 29 Jul 2018 14:01:39 +0100 Subject: [PATCH] Ensure static functions are static --- fast_obj.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fast_obj.h b/fast_obj.h index 71563f8..99447f0 100644 --- a/fast_obj.h +++ b/fast_obj.h @@ -204,12 +204,14 @@ void* array_realloc(void* ptr, unsigned int n, unsigned int b) } +static void* file_open(const char* path) { return fopen(path, "rb"); } +static void file_close(void* file) { FILE* f; @@ -219,6 +221,7 @@ void file_close(void* file) } +static unsigned int file_read(void* file, void* dst, unsigned int bytes) { FILE* f; @@ -228,6 +231,7 @@ unsigned int file_read(void* file, void* dst, unsigned int bytes) } +static unsigned int file_size(void* file) { FILE* f;