From 0724617abd1e97a149cb762243374ce61ea18994 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 21 Mar 2015 01:36:20 +0100 Subject: [PATCH] Make g_config a static variable and make it no longer global --- configuration.c | 2 +- configuration.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/configuration.c b/configuration.c index add3c2043b..bf37b4ce56 100644 --- a/configuration.c +++ b/configuration.c @@ -31,7 +31,7 @@ #include "config.h" #endif -settings_t g_config; +static settings_t g_config; struct global g_extern; struct defaults g_defaults; diff --git a/configuration.h b/configuration.h index 174e83def8..52ec3186de 100644 --- a/configuration.h +++ b/configuration.h @@ -409,9 +409,6 @@ bool config_save_file(const char *path); settings_t *config_get_ptr(void); -/* Public data structures. */ -extern settings_t g_config; - #ifdef __cplusplus } #endif