summaryrefslogtreecommitdiff
path: root/bin/dd
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-05-21 06:23:03 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-05-21 06:23:03 +0000
commit58d6b0c0f6c4bb2a9fe1e5ec494c8124c7083c27 (patch)
tree425d1eb0976b16a317345afdfa1e11db7a9c71cb /bin/dd
parent06c1f7e88086cc8bc06ccbe161ef507e32244f7a (diff)
Use errc/warnc to simplify code.
ok jca@ krw@
Diffstat (limited to 'bin/dd')
-rw-r--r--bin/dd/args.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c
index 827337a9e02..fb0f0178338 100644
--- a/bin/dd/args.c
+++ b/bin/dd/args.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: args.c,v 1.24 2014/03/27 15:32:13 tedu Exp $ */
+/* $OpenBSD: args.c,v 1.25 2014/05/21 06:23:02 guenther Exp $ */
/* $NetBSD: args.c,v 1.7 1996/03/01 01:18:58 jtc Exp $ */
/*-
@@ -383,7 +383,7 @@ get_bsz(char *val)
}
return (num);
erange:
- errx(1, "%s: %s", oper, strerror(ERANGE));
+ errc(1, ERANGE, "%s", oper);
}
/*
@@ -462,5 +462,5 @@ get_off(char *val)
}
return (num);
erange:
- errx(1, "%s: %s", oper, strerror(ERANGE));
+ errc(1, ERANGE, "%s", oper);
}