diff options
| author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-11-22 02:13:41 +0000 |
|---|---|---|
| committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-11-22 02:13:41 +0000 |
| commit | f0515dad66ab7340674a8695dfd60ffcef6cb5aa (patch) | |
| tree | 89407510fa5e1c4503e49f73d798fec561e6e28a /libbb | |
| parent | 7ffe1338647d2b890df3ae46e526410b21a90d18 (diff) | |
| download | busybox-w32-f0515dad66ab7340674a8695dfd60ffcef6cb5aa.tar.gz busybox-w32-f0515dad66ab7340674a8695dfd60ffcef6cb5aa.tar.bz2 busybox-w32-f0515dad66ab7340674a8695dfd60ffcef6cb5aa.zip | |
Fix warning
Diffstat (limited to 'libbb')
| -rw-r--r-- | libbb/copyfd.c | 8 |
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 */ |
| 33 | extern 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)) | 37 | extern 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 | { |
