diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-12-28 23:07:04 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-12-28 23:07:04 +0000 |
commit | 6ea063dc11d38fa1f2b7c57eb8193fd8034d736e (patch) | |
tree | 4dd8f3f19bdca70329768acea819cd0e8c43635c | |
parent | 6ffdb72a4df3c06f56d594fdd56cce69c1ef664c (diff) |
libs/nixio: properly cast len argument for OS X sendfile()
-rw-r--r-- | libs/nixio/src/splice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/nixio/src/splice.c b/libs/nixio/src/splice.c index 4f7c04301..38a45c22a 100644 --- a/libs/nixio/src/splice.c +++ b/libs/nixio/src/splice.c @@ -144,7 +144,7 @@ static int nixio_sendfile(lua_State *L) { do { #ifdef __DARWIN__ - r = sendfile(infd, sock, offset, len, NULL, 0); + r = sendfile(infd, sock, offset, (off_t *)&len, NULL, 0); #else r = sendfile(infd, sock, offset, len, NULL, &spliced, 0); #endif |