From 7494cb1c7cc1a0656a9ed4b8007e312017ff673e Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sat, 1 Feb 2020 17:06:41 -0800 Subject: [PATCH] Removed the utils.h include from config.h as it's not used by config --- inc/config.h | 5 +++-- inc/wofi.h | 1 + src/config.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/inc/config.h b/inc/config.h index 16a5f82..66b5c36 100644 --- a/inc/config.h +++ b/inc/config.h @@ -19,11 +19,12 @@ #define CONFIG_H #include -#include +#include #include #include -#include +#include +#include void config_put(struct map* map, char* line); diff --git a/inc/wofi.h b/inc/wofi.h index 7b9cffa..41f513c 100644 --- a/inc/wofi.h +++ b/inc/wofi.h @@ -20,6 +20,7 @@ #include +#include #include #include diff --git a/src/config.c b/src/config.c index 7c90862..bc5f576 100644 --- a/src/config.c +++ b/src/config.c @@ -81,7 +81,7 @@ uint8_t config_get_mnemonic(struct map* config, const char* key, char* def_opt, uint8_t result = 0; for(uint8_t i = 0; i < num_choices; i++) { char* cmp_str = va_arg(ap, char*); - if (strcmp(opt, cmp_str) == 0) { + if(strcmp(opt, cmp_str) == 0) { result = i; break; }