From 24f207115c30fd296c02bb50712420c240726c55 Mon Sep 17 00:00:00 2001 From: Alexei Lozovsky Date: Sun, 2 Feb 2020 16:38:57 +0200 Subject: [PATCH] Hide unnecessarily exported symbols gc_heap_err_str and load_image_header() are never used outside of gc_heap.c but they are not marked static and are effectively exported by Chibi's shared library. Since this is unlikely to be intentional, let's hide them. --- gc_heap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gc_heap.c b/gc_heap.c index b91c5281..80382d57 100644 --- a/gc_heap.c +++ b/gc_heap.c @@ -7,7 +7,7 @@ #if SEXP_USE_IMAGE_LOADING #define ERR_STR_SIZE 256 -char gc_heap_err_str[ERR_STR_SIZE]; +static char gc_heap_err_str[ERR_STR_SIZE]; static sexp_uint_t sexp_gc_allocated_bytes (sexp ctx, sexp *types, size_t types_cnt, sexp x) { @@ -573,7 +573,7 @@ static sexp load_image_callback_p2 (sexp ctx, sexp dstp, void *user) { } -int load_image_header(FILE *fp, struct sexp_image_header_t* header) { +static int load_image_header(FILE *fp, struct sexp_image_header_t* header) { if (!fp || !header) { return 0; } if (fread(header, sizeof(struct sexp_image_header_t), 1, fp) != 1) {