diff --git a/include/libhttp.h b/include/libhttp.h index 3933dc91..1a53f6d5 100644 --- a/include/libhttp.h +++ b/include/libhttp.h @@ -454,7 +454,6 @@ struct httplib_option { enum { CONFIG_TYPE_UNKNOWN = 0x0, - CONFIG_TYPE_STRING = 0x2, CONFIG_TYPE_FILE = 0x3, CONFIG_TYPE_DIRECTORY = 0x4, CONFIG_TYPE_EXT_PATTERN = 0x6 diff --git a/src/main.c b/src/main.c index d4356dd9..5f4e8ffe 100644 --- a/src/main.c +++ b/src/main.c @@ -162,8 +162,8 @@ static struct tuser_data enum { OPTION_TITLE, OPTION_ICON, NUM_MAIN_OPTIONS }; static struct httplib_option main_config_options[] = { - { "title", CONFIG_TYPE_STRING, NULL }, - { "icon", CONFIG_TYPE_STRING, NULL }, + { "title", 0x02, NULL }, + { "icon", 0x02, NULL }, { NULL, CONFIG_TYPE_UNKNOWN, NULL } }; @@ -362,7 +362,7 @@ static int set_option( struct httplib_option_t *options, const char *name, const return 0; } break; - case CONFIG_TYPE_STRING: + case 0x02 : /* CONFIG_TYPE_STRING: */ /* any text */ break; case 0x5 : /* CONFIG_TYPE_BOOLEAN: */