From 58d6b0c0f6c4bb2a9fe1e5ec494c8124c7083c27 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Wed, 21 May 2014 06:23:03 +0000 Subject: Use errc/warnc to simplify code. ok jca@ krw@ --- bin/dd/args.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/dd') 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); } -- cgit v1.2.3