From 5ad04d351680822078003e2b066cfc9680d6157d Mon Sep 17 00:00:00 2001 From: guenther Date: Tue, 20 May 2014 01:25:23 +0000 Subject: Use errc/warnc to simplify code. Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@ --- usr.sbin/lpr/lpr/lpr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/lpr') diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c index 182831cca2b..dc13643acd6 100644 --- a/usr.sbin/lpr/lpr/lpr.c +++ b/usr.sbin/lpr/lpr/lpr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpr.c,v 1.45 2013/11/24 21:32:32 deraadt Exp $ */ +/* $OpenBSD: lpr.c,v 1.46 2014/05/20 01:25:24 guenther Exp $ */ /* $NetBSD: lpr.c,v 1.19 2000/10/11 20:23:52 is Exp $ */ /* @@ -665,7 +665,7 @@ mktemps(void) struct stat stb; if (snprintf(buf, sizeof(buf), "%s/.seq", SD) >= sizeof(buf)) - errx(1, "%s/.seq: %s", SD, strerror(ENAMETOOLONG)); + errc(1, ENAMETOOLONG, "%s/.seq", SD); PRIV_START; if ((fd = safe_open(buf, O_RDWR|O_CREAT|O_NOFOLLOW, 0661)) < 0) err(1, "cannot open %s", buf); -- cgit v1.2.3-59-g8ed1b