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/posix/mkfifo.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'toys/posix/mkfifo.c') diff --git a/toys/posix/mkfifo.c b/toys/posix/mkfifo.c index 322c0bd2..15fab70a 100644 --- a/toys/posix/mkfifo.c +++ b/toys/posix/mkfifo.c @@ -30,10 +30,6 @@ void mkfifo_main(void) TT.mode = 0666; if (toys.optflags & FLAG_m) TT.mode = string_to_mode(TT.m_string, 0); - for (s = toys.optargs; *s; s++) { - if (mknod(*s, S_IFIFO | TT.mode, 0) < 0) { - perror_msg("cannot create fifo '%s'", *s); - toys.exitval = 1; - } - } + for (s = toys.optargs; *s; s++) + if (mknod(*s, S_IFIFO | TT.mode, 0) < 0) perror_msg("%s", *s); } -- cgit v1.2.3