summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko2006-09-17 15:45:48 +0000
committerDenis Vlasenko2006-09-17 15:45:48 +0000
commit6231e870ec52820cce4f8a98e8db280b38c5eec1 (patch)
treea3b16c3b1c9bac842e26fb7092d76f0859ce1c83 /libbb
parent029c469934843580a3b28e9d863d0a4ecbde72eb (diff)
downloadbusybox-6231e870ec52820cce4f8a98e8db280b38c5eec1.zip
busybox-6231e870ec52820cce4f8a98e8db280b38c5eec1.tar.gz
style fixes
Diffstat (limited to 'libbb')
-rw-r--r--libbb/copyfd.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libbb/copyfd.c b/libbb/copyfd.c
index 0c4f7a0..e9300a9 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)
RESERVE_CONFIG_BUFFER(buffer,BUFSIZ);
if (src_fd < 0) goto out;
- while (!size || total < size)
- {
+ while (!size || total < size) {
ssize_t wr, rd;
rd = safe_read(src_fd, buffer,
@@ -64,12 +63,12 @@ out:
int bb_copyfd_size(int fd1, int fd2, const off_t size)
{
if (size) {
- return(bb_full_fd_action(fd1, fd2, size));
+ return bb_full_fd_action(fd1, fd2, size);
}
- return(0);
+ return 0;
}
int bb_copyfd_eof(int fd1, int fd2)
{
- return(bb_full_fd_action(fd1, fd2, 0));
+ return bb_full_fd_action(fd1, fd2, 0);
}