From 2a47c81999d1dd133ed8cf9b78782a8af43569ed Mon Sep 17 00:00:00 2001 From: Thorsten von Eicken Date: Sun, 20 Sep 2015 10:23:30 -0700 Subject: [PATCH] fix getStringAre type --- esp-link/cgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esp-link/cgi.c b/esp-link/cgi.c index 1c870f5..5c0584c 100644 --- a/esp-link/cgi.c +++ b/esp-link/cgi.c @@ -43,7 +43,7 @@ errorResponse(HttpdConnData *connData, int code, char *message) { // look for the HTTP arg 'name' and store it at 'config' with max length 'max_len' (incl // terminating zero), returns -1 on error, 0 if not found, 1 if found and OK -int ICACHE_FLASH_ATTR +int8_t ICACHE_FLASH_ATTR getStringArg(HttpdConnData *connData, char *name, char *config, int max_len) { char buff[128]; int len = httpdFindArg(connData->getArgs, name, buff, sizeof(buff)); @@ -57,7 +57,7 @@ getStringArg(HttpdConnData *connData, char *name, char *config, int max_len) { return 1; } -int ICACHE_FLASH_ATTR +int8_t ICACHE_FLASH_ATTR getBoolArg(HttpdConnData *connData, char *name, bool*config) { char buff[64]; int len = httpdFindArg(connData->getArgs, name, buff, sizeof(buff));