From bb3ee073f936028e7c95bcd2a73707f7d868b9e1 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Mon, 30 Jul 2018 22:30:28 -0700 Subject: [PATCH] Comment out some extern declarations for variables only used locally. --- src/dumb/dumb_blorb.c | 4 ++-- src/dumb/dumb_blorb.h | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/dumb/dumb_blorb.c b/src/dumb/dumb_blorb.c index 329ebbb..26efd27 100644 --- a/src/dumb/dumb_blorb.c +++ b/src/dumb/dumb_blorb.c @@ -34,7 +34,7 @@ f_setup_t f_setup; FILE *blorb_fp; bb_result_t blorb_res; -bb_map_t *blorb_map; +/* bb_map_t *blorb_map; */ /* Used only locally */ static int isblorb(FILE *); @@ -62,7 +62,7 @@ bb_err_t dumb_blorb_init(char *filename) bb_err_t blorb_err; - blorb_map = NULL; + bb_map_t *blorb_map = NULL; if ((fp = fopen(filename, "rb")) == NULL) return bb_err_Read; diff --git a/src/dumb/dumb_blorb.h b/src/dumb/dumb_blorb.h index cf9e074..55bee92 100644 --- a/src/dumb/dumb_blorb.h +++ b/src/dumb/dumb_blorb.h @@ -25,10 +25,13 @@ typedef struct { FILE *fp; } myresource; -extern bb_err_t blorb_err; -extern bb_map_t *blorb_map; -extern bb_result_t blorb_res; -extern FILE *blorb_fp; +/* These are used only locally */ +/* +extern bb_err_t blorb_err; +extern bb_map_t *blorb_map; +extern FILE *blorb_fp; +*/ +extern bb_result_t blorb_res; bb_err_t dumb_blorb_init(char *); void dumb_blorb_stop(void); -- 2.34.1