From 662a267c9b52f256b027d0f176a846b1d973ab99 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 2 Jan 2013 02:00:35 -0600 Subject: 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. --- toys/other/dos2unix.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'toys/other/dos2unix.c') diff --git a/toys/other/dos2unix.c b/toys/other/dos2unix.c index 59cd6a53..3e1feb0e 100644 --- a/toys/other/dos2unix.c +++ b/toys/other/dos2unix.c @@ -33,10 +33,7 @@ static void do_dos2unix(int fd, char *name) int len, in, out; len = read(fd, toybuf+(sizeof(toybuf)/2), sizeof(toybuf)/2); - if (len<0) { - perror_msg("%s",name); - toys.exitval = 1; - } + if (len<0) perror_msg("%s",name); if (len<1) break; for (in = out = 0; in < len; in++) { -- cgit v1.2.3