Remove double include; fcnctl seems to be around in several locations.
authorWilfried Goesgens <dothebart@citadel.org>
Tue, 18 Oct 2011 19:46:12 +0000 (21:46 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Tue, 18 Oct 2011 19:46:12 +0000 (21:46 +0200)
libcitadel/lib/stringbuf.c

index 466bb2c32da704fe39e588782c7142fb8e7414c6..795dd604d734f881f0792d6398e44a3886cd3871 100644 (file)
@@ -30,7 +30,6 @@
 #define SHOW_ME_VAPPEND_PRINTF
 #include <stdarg.h>
 #ifndef LINUX_SENDFILE
-#include <bits/fcntl.h>
 #include <sys/sendfile.h>
 #endif
 #include "libcitadel.h"
@@ -3842,7 +3841,6 @@ int FileRecvChunked(FDIOBuffer *FDB, const char **Err)
 
 #ifdef LINUX_SENDFILE
        ssize_t sent, pipesize;
-       long foo = 0;
 
        pipesize = splice(FDB->IOB->fd, NULL, 
                          FDB->SplicePipe[1], NULL,