all: Make file-scope variables internally linked where applicable (#57)

Narrows the scope of visible symbols to where they're actually used. Also
makes it easier to see true globals in source files
(ones used from multiple translation units)
This commit is contained in:
Mat M
2018-02-26 03:42:21 -05:00
committed by SciresM
parent c94cfe4898
commit 1de6b336bb
8 changed files with 17 additions and 18 deletions

View File

@@ -8,7 +8,7 @@
#include "fuse.h"
#include "utils.h"
int g_battery_profile = 0;
static int g_battery_profile = 0;
uint32_t configitem_set(enum ConfigItem item, uint64_t value) {
if (item != CONFIGITEM_BATTERYPROFILE) {