Removed the utils.h include from config.h as it's not used by config

This commit is contained in:
Scoopta 2020-02-01 17:06:41 -08:00
parent 4fac0ee652
commit 7494cb1c7c
3 changed files with 5 additions and 3 deletions

View File

@ -19,11 +19,12 @@
#define CONFIG_H
#include <map.h>
#include <utils.h>
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void config_put(struct map* map, char* line);

View File

@ -20,6 +20,7 @@
#include <wofi_api.h>
#include <utils.h>
#include <config.h>
#include <property_box.h>

View File

@ -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;
}