aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-11-22 02:13:41 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-11-22 02:13:41 +0000
commitf0515dad66ab7340674a8695dfd60ffcef6cb5aa (patch)
tree89407510fa5e1c4503e49f73d798fec561e6e28a
parent7ffe1338647d2b890df3ae46e526410b21a90d18 (diff)
downloadbusybox-w32-f0515dad66ab7340674a8695dfd60ffcef6cb5aa.tar.gz
busybox-w32-f0515dad66ab7340674a8695dfd60ffcef6cb5aa.tar.bz2
busybox-w32-f0515dad66ab7340674a8695dfd60ffcef6cb5aa.zip
Fix warning
-rw-r--r--libbb/copyfd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbb/copyfd.c b/libbb/copyfd.c
index 0787c812f..62ada8e02 100644
--- a/libbb/copyfd.c
+++ b/libbb/copyfd.c
@@ -19,16 +19,20 @@
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */ 20 */
21 21
22#include <unistd.h>
23#include <string.h>
24#include <errno.h> 22#include <errno.h>
23#include <stdlib.h>
24#include <string.h>
25#include <unistd.h>
26
25#include "busybox.h" 27#include "busybox.h"
26 28
29
27#if BUFSIZ < 4096 30#if BUFSIZ < 4096
28#undef BUFSIZ 31#undef BUFSIZ
29#define BUFSIZ 4096 32#define BUFSIZ 4096
30#endif 33#endif
31 34
35
32/* If size is 0 copy until EOF */ 36/* If size is 0 copy until EOF */
33extern size_t bb_full_fd_action(int src_fd, int dst_fd, const size_t size, ssize_t (*action)(int fd, const void *, size_t)) 37extern size_t bb_full_fd_action(int src_fd, int dst_fd, const size_t size, ssize_t (*action)(int fd, const void *, size_t))
34{ 38{