fix getStringAre type

pull/65/head
Thorsten von Eicken 9 years ago
parent 0e096f0cc5
commit 2a47c81999
  1. 4
      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 // 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 // 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) { getStringArg(HttpdConnData *connData, char *name, char *config, int max_len) {
char buff[128]; char buff[128];
int len = httpdFindArg(connData->getArgs, name, buff, sizeof(buff)); 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; return 1;
} }
int ICACHE_FLASH_ATTR int8_t ICACHE_FLASH_ATTR
getBoolArg(HttpdConnData *connData, char *name, bool*config) { getBoolArg(HttpdConnData *connData, char *name, bool*config) {
char buff[64]; char buff[64];
int len = httpdFindArg(connData->getArgs, name, buff, sizeof(buff)); int len = httpdFindArg(connData->getArgs, name, buff, sizeof(buff));

Loading…
Cancel
Save