remove warning

This commit is contained in:
simon987 2020-08-14 21:36:27 -04:00
parent 6281dbf6a0
commit f62edbd589

View File

@ -243,7 +243,7 @@ void search(struct mg_connection *nc, struct http_message *hm) {
free(body); free(body);
} }
int serve_file_from_url(cJSON *json, index_t *idx, struct mg_connection *nc) { void serve_file_from_url(cJSON *json, index_t *idx, struct mg_connection *nc) {
const char *path = cJSON_GetObjectItem(json, "path")->valuestring; const char *path = cJSON_GetObjectItem(json, "path")->valuestring;
const char *name = cJSON_GetObjectItem(json, "name")->valuestring; const char *name = cJSON_GetObjectItem(json, "name")->valuestring;