summaryrefslogtreecommitdiff
path: root/libbb/full_read.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-10-12 22:44:13 +0000
committerDenis Vlasenko2006-10-12 22:44:13 +0000
commit88ca06769028e442bf873b270c176ca0e9f021f8 (patch)
tree5df56293dd5b0266ae5964ef5dad5e8b2794f121 /libbb/full_read.c
parent2d5ca60bfb66e0ba7340ab9b4696b872f00adf7c (diff)
downloadbusybox-88ca06769028e442bf873b270c176ca0e9f021f8.zip
busybox-88ca06769028e442bf873b270c176ca0e9f021f8.tar.gz
xread/write can use full_read/write (smaller code)
Diffstat (limited to 'libbb/full_read.c')
-rw-r--r--libbb/full_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/full_read.c b/libbb/full_read.c
index b5837d5..068d166 100644
--- a/libbb/full_read.c
+++ b/libbb/full_read.c
@@ -24,7 +24,7 @@ ssize_t full_read(int fd, void *buf, size_t len)
total = 0;
- while (len > 0) {
+ while (len) {
cc = safe_read(fd, buf, len);
if (cc < 0)