1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-08-06 05:02:40 +03:00

Removed CONFIG_TYPE_BOOLEAN

This commit is contained in:
Lammert Bies
2016-12-28 04:38:57 +01:00
parent defb3219d0
commit 2a90c0acda
2 changed files with 1 additions and 2 deletions

View File

@@ -458,7 +458,6 @@ enum {
CONFIG_TYPE_STRING = 0x2,
CONFIG_TYPE_FILE = 0x3,
CONFIG_TYPE_DIRECTORY = 0x4,
CONFIG_TYPE_BOOLEAN = 0x5,
CONFIG_TYPE_EXT_PATTERN = 0x6
};

View File

@@ -365,7 +365,7 @@ static int set_option( struct httplib_option_t *options, const char *name, const
case CONFIG_TYPE_STRING:
/* any text */
break;
case CONFIG_TYPE_BOOLEAN:
case 0x5 : /* CONFIG_TYPE_BOOLEAN: */
/* boolean value, yes or no */
if ((0 != strcmp(value, "yes")) && (0 != strcmp(value, "no"))) {
/* invalid boolean */