Removed the utils.h include from config.h as it's not used by config
This commit is contained in:
parent
4fac0ee652
commit
7494cb1c7c
@ -19,11 +19,12 @@
|
|||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
#include <map.h>
|
#include <map.h>
|
||||||
#include <utils.h>
|
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
void config_put(struct map* map, char* line);
|
void config_put(struct map* map, char* line);
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include <wofi_api.h>
|
#include <wofi_api.h>
|
||||||
|
|
||||||
|
#include <utils.h>
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <property_box.h>
|
#include <property_box.h>
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ uint8_t config_get_mnemonic(struct map* config, const char* key, char* def_opt,
|
|||||||
uint8_t result = 0;
|
uint8_t result = 0;
|
||||||
for(uint8_t i = 0; i < num_choices; i++) {
|
for(uint8_t i = 0; i < num_choices; i++) {
|
||||||
char* cmp_str = va_arg(ap, char*);
|
char* cmp_str = va_arg(ap, char*);
|
||||||
if (strcmp(opt, cmp_str) == 0) {
|
if(strcmp(opt, cmp_str) == 0) {
|
||||||
result = i;
|
result = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user