Implement CONFIG_KEY_UNSIGNED_INTEGER
strtol() does not work when trying to assign 32 bits of data into a
regular signed int on 32 bit systems. Use corresponding strtoul()
instead.
diff --git a/shared/config-parser.h b/shared/config-parser.h
index 34f5c31..27f528d 100644
--- a/shared/config-parser.h
+++ b/shared/config-parser.h
@@ -24,9 +24,10 @@
#define CONFIGPARSER_H
enum config_key_type {
- CONFIG_KEY_INTEGER, /* typeof data = int */
- CONFIG_KEY_STRING, /* typeof data = char* */
- CONFIG_KEY_BOOLEAN /* typeof data = int */
+ CONFIG_KEY_INTEGER, /* typeof data = int */
+ CONFIG_KEY_UNSIGNED_INTEGER, /* typeof data = unsigned int */
+ CONFIG_KEY_STRING, /* typeof data = char* */
+ CONFIG_KEY_BOOLEAN /* typeof data = int */
};
struct config_key {