mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +00:00
Squash -DMG_ENABLE_FS=0 build warning
This commit is contained in:
1 parent
60e1b64455
commit
4c3b97be7d
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -639,6 +639,7 @@ void mg_http_reply(struct mg_connection *c, int code, const char *headers,
|
||||
if (buf != mem) free(buf);
|
||||
}
|
||||
|
||||
#if MG_ENABLE_FS
|
||||
static void http_cb(struct mg_connection *, int, void *, void *);
|
||||
static void restore_http_cb(struct mg_connection *c) {
|
||||
struct http_data *d = (struct http_data *) c->pfn_data;
|
||||
@@ -648,7 +649,6 @@ static void restore_http_cb(struct mg_connection *c) {
|
||||
free(d);
|
||||
}
|
||||
|
||||
#if MG_ENABLE_FS
|
||||
char *mg_http_etag(char *buf, size_t len, struct stat *st) {
|
||||
snprintf(buf, len, "\"%lx.%lu\"", (unsigned long) st->st_mtime,
|
||||
(unsigned long) st->st_size);
|
||||
|
||||
+1
-1
@@ -240,6 +240,7 @@ void mg_http_reply(struct mg_connection *c, int code, const char *headers,
|
||||
if (buf != mem) free(buf);
|
||||
}
|
||||
|
||||
#if MG_ENABLE_FS
|
||||
static void http_cb(struct mg_connection *, int, void *, void *);
|
||||
static void restore_http_cb(struct mg_connection *c) {
|
||||
struct http_data *d = (struct http_data *) c->pfn_data;
|
||||
@@ -249,7 +250,6 @@ static void restore_http_cb(struct mg_connection *c) {
|
||||
free(d);
|
||||
}
|
||||
|
||||
#if MG_ENABLE_FS
|
||||
char *mg_http_etag(char *buf, size_t len, struct stat *st) {
|
||||
snprintf(buf, len, "\"%lx.%lu\"", (unsigned long) st->st_mtime,
|
||||
(unsigned long) st->st_size);
|
||||
|
||||
Reference in new issue
Block a user