diff options
author | Rob Landley <rob@landley.net> | 2013-01-02 02:00:35 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-01-02 02:00:35 -0600 |
commit | 662a267c9b52f256b027d0f176a846b1d973ab99 (patch) | |
tree | 1ff58749c737a283a199e1e567894fe16a9d0ce5 /toys/posix/cksum.c | |
parent | 090c5c607ec682e5cfc03bbc745cd1ed28d5d6ce (diff) | |
download | toybox-662a267c9b52f256b027d0f176a846b1d973ab99.tar.gz |
Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out other places that were setting it that no longer need to.
Diffstat (limited to 'toys/posix/cksum.c')
-rw-r--r-- | toys/posix/cksum.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/toys/posix/cksum.c b/toys/posix/cksum.c index 1192077c..9f6aa42b 100644 --- a/toys/posix/cksum.c +++ b/toys/posix/cksum.c @@ -51,10 +51,7 @@ static void do_cksum(int fd, char *name) int len, i; len = read(fd, toybuf, sizeof(toybuf)); - if (len<0) { - perror_msg("%s",name); - toys.exitval = EXIT_FAILURE; - } + if (len<0) perror_msg("%s", name); if (len<1) break; llen += len; |