diff options
author | Denis Vlasenko | 2006-10-12 22:44:13 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-12 22:44:13 +0000 |
commit | 88ca06769028e442bf873b270c176ca0e9f021f8 (patch) | |
tree | 5df56293dd5b0266ae5964ef5dad5e8b2794f121 /libbb/full_read.c | |
parent | 2d5ca60bfb66e0ba7340ab9b4696b872f00adf7c (diff) | |
download | busybox-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.c | 2 |
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) |