diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-17 15:45:48 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-17 15:45:48 +0000 |
commit | 6231e870ec52820cce4f8a98e8db280b38c5eec1 (patch) | |
tree | a3b16c3b1c9bac842e26fb7092d76f0859ce1c83 | |
parent | 029c469934843580a3b28e9d863d0a4ecbde72eb (diff) | |
download | busybox-w32-6231e870ec52820cce4f8a98e8db280b38c5eec1.tar.gz busybox-w32-6231e870ec52820cce4f8a98e8db280b38c5eec1.tar.bz2 busybox-w32-6231e870ec52820cce4f8a98e8db280b38c5eec1.zip |
style fixes
-rw-r--r-- | libbb/copyfd.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libbb/copyfd.c b/libbb/copyfd.c index 0c4f7a054..e9300a97d 100644 --- a/libbb/copyfd.c +++ b/libbb/copyfd.c | |||
@@ -28,8 +28,7 @@ static ssize_t bb_full_fd_action(int src_fd, int dst_fd, size_t size) | |||
28 | RESERVE_CONFIG_BUFFER(buffer,BUFSIZ); | 28 | RESERVE_CONFIG_BUFFER(buffer,BUFSIZ); |
29 | 29 | ||
30 | if (src_fd < 0) goto out; | 30 | if (src_fd < 0) goto out; |
31 | while (!size || total < size) | 31 | while (!size || total < size) { |
32 | { | ||
33 | ssize_t wr, rd; | 32 | ssize_t wr, rd; |
34 | 33 | ||
35 | rd = safe_read(src_fd, buffer, | 34 | rd = safe_read(src_fd, buffer, |
@@ -64,12 +63,12 @@ out: | |||
64 | int bb_copyfd_size(int fd1, int fd2, const off_t size) | 63 | int bb_copyfd_size(int fd1, int fd2, const off_t size) |
65 | { | 64 | { |
66 | if (size) { | 65 | if (size) { |
67 | return(bb_full_fd_action(fd1, fd2, size)); | 66 | return bb_full_fd_action(fd1, fd2, size); |
68 | } | 67 | } |
69 | return(0); | 68 | return 0; |
70 | } | 69 | } |
71 | 70 | ||
72 | int bb_copyfd_eof(int fd1, int fd2) | 71 | int bb_copyfd_eof(int fd1, int fd2) |
73 | { | 72 | { |
74 | return(bb_full_fd_action(fd1, fd2, 0)); | 73 | return bb_full_fd_action(fd1, fd2, 0); |
75 | } | 74 | } |