|
@@ -351,7 +351,8 @@ static int pthread_mutex_lock(pthread_mutex_t *);
|
|
|
static int pthread_mutex_unlock(pthread_mutex_t *);
|
|
|
static void to_unicode(const char *path, wchar_t *wbuf, size_t wbuf_len);
|
|
|
struct file;
|
|
|
-static char *mg_fgets(char *buf, size_t size, struct file *filep, char **p);
|
|
|
+static const char *
|
|
|
+mg_fgets(char *buf, size_t size, struct file *filep, char **p);
|
|
|
|
|
|
#if defined(HAVE_STDINT)
|
|
|
#include <stdint.h>
|
|
@@ -7516,7 +7517,8 @@ handle_cgi_request(struct mg_connection *conn, const char *prog)
|
|
|
if ((status = get_header(&ri, "Status")) != NULL) {
|
|
|
conn->status_code = atoi(status);
|
|
|
status_text = status;
|
|
|
- while (isdigit(*(const unsigned char *)status_text) || *status_text == ' ') {
|
|
|
+ while (isdigit(*(const unsigned char *)status_text)
|
|
|
+ || *status_text == ' ') {
|
|
|
status_text++;
|
|
|
}
|
|
|
} else if (get_header(&ri, "Location") != NULL) {
|