diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-05-21 06:23:03 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-05-21 06:23:03 +0000 |
commit | 58d6b0c0f6c4bb2a9fe1e5ec494c8124c7083c27 (patch) | |
tree | 425d1eb0976b16a317345afdfa1e11db7a9c71cb /bin/rm | |
parent | 06c1f7e88086cc8bc06ccbe161ef507e32244f7a (diff) |
Use errc/warnc to simplify code.
ok jca@ krw@
Diffstat (limited to 'bin/rm')
-rw-r--r-- | bin/rm/rm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c index bc08516c8f5..ed43f02e5b8 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rm.c,v 1.28 2013/04/23 18:41:08 deraadt Exp $ */ +/* $OpenBSD: rm.c,v 1.29 2014/05/21 06:23:02 guenther Exp $ */ /* $NetBSD: rm.c,v 1.19 1995/09/07 06:48:50 jtc Exp $ */ /*- @@ -152,7 +152,7 @@ rm_tree(char **argv) } continue; case FTS_ERR: - errx(1, "%s: %s", p->fts_path, strerror(p->fts_errno)); + errc(1, p->fts_errno, "%s", p->fts_path); case FTS_NS: /* * FTS_NS: assume that if can't stat the file, it |