aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-01-18 21:54:08 -0500
committerRob Landley <rob@landley.net>2007-01-18 21:54:08 -0500
commit901637760b4206e968e73dd5ff7430c107c27b57 (patch)
tree61923e296b7728cb32261bd64eb1ad2261f5ad75 /toys
parent813840c9d199bf9e26d23291cf23e22a68e8ad82 (diff)
downloadtoybox-901637760b4206e968e73dd5ff7430c107c27b57.tar.gz
Add fdprintf(). Remove reread() and rewrite() which handle -EINTR, which
shouldn't be a problem if we register signal handlers with sigaction(SA_RESTART) Straighten out count and len (I generally consistently use "count" for the current progress and "len" for the total, but this time I got them backwards for some reason and don't want to confuse myself in future.)
Diffstat (limited to 'toys')
-rw-r--r--toys/catv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/catv.c b/toys/catv.c
index e37f307b..9097c065 100644
--- a/toys/catv.c
+++ b/toys/catv.c
@@ -27,7 +27,7 @@ int catv_main(void)
else for(;;) {
int i, res;
- res = reread(fd, toybuf, sizeof(toybuf));
+ res = read(fd, toybuf, sizeof(toybuf));
if (res < 0) retval = EXIT_FAILURE;
if (res < 1) break;
for (i=0; i<res; i++) {