summaryrefslogtreecommitdiff
path: root/libbb/full_write.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_write.c
parent2d5ca60bfb66e0ba7340ab9b4696b872f00adf7c (diff)
downloadbusybox-88ca06769028e442bf873b270c176ca0e9f021f8.zip
busybox-88ca06769028e442bf873b270c176ca0e9f021f8.tar.gz
xread/write can use full_read/write (smaller code)
Diffstat (limited to 'libbb/full_write.c')
-rw-r--r--libbb/full_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/full_write.c b/libbb/full_write.c
index d812d04..563f4a8 100644
--- a/libbb/full_write.c
+++ b/libbb/full_write.c
@@ -23,7 +23,7 @@ ssize_t full_write(int fd, const void *buf, size_t len)
total = 0;
- while (len > 0) {
+ while (len) {
cc = safe_write(fd, buf, len);
if (cc < 0)