summaryrefslogtreecommitdiff
path: root/src/network_write_mmap.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-12-21 06:00:32 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2017-01-14 01:06:16 -0500
commit4364a4e029d99ef3f8ad855630f790d5b3d39944 (patch)
treeff18d7c2277ae93ee5c51d9c47dca4f855fb3993 /src/network_write_mmap.c
parentcb9ebe9fa6d5203ffcc57c2fbef1820fb4b03689 (diff)
downloadlighttpd1.4-4364a4e029d99ef3f8ad855630f790d5b3d39944.tar.gz
lighttpd1.4-4364a4e029d99ef3f8ad855630f790d5b3d39944.zip
[core] move network_open_file_chunk() to chunk.c
move network_open_file_chunk() to chunk.c:chunkqueue_open_file_chunk() for reuse from modules
Diffstat (limited to 'src/network_write_mmap.c')
-rw-r--r--src/network_write_mmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network_write_mmap.c b/src/network_write_mmap.c
index 83add942..d46c1adf 100644
--- a/src/network_write_mmap.c
+++ b/src/network_write_mmap.c
@@ -2,7 +2,6 @@
#include "network_backends.h"
-#include "network.h"
#include "log.h"
#include "sys-mmap.h"
@@ -47,6 +46,7 @@ int network_write_file_chunk_mmap(server *srv, connection *con, int fd, chunkque
ssize_t r;
size_t mmap_offset, mmap_avail;
const char *data;
+ UNUSED(con);
force_assert(NULL != c);
force_assert(FILE_CHUNK == c->type);
@@ -62,7 +62,7 @@ int network_write_file_chunk_mmap(server *srv, connection *con, int fd, chunkque
return 0;
}
- if (0 != network_open_file_chunk(srv, con, cq)) return -1;
+ if (0 != chunkqueue_open_file_chunk(srv, cq)) return -1;
/* setup SIGBUS handler, but don't activate sigbus_jmp_valid yet */
if (0 != sigsetjmp(sigbus_jmp, 1)) {