From 135a31e88fee59a763ba6a13530efb7812f327b9 Mon Sep 17 00:00:00 2001 From: mickey Date: Thu, 3 Apr 1997 19:33:50 +0000 Subject: [PATCH] fix my last fix. warnx, not warn! --- usr.bin/strip/strip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/strip/strip.c b/usr.bin/strip/strip.c index 792eba72d05..1976e4b7716 100644 --- a/usr.bin/strip/strip.c +++ b/usr.bin/strip/strip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strip.c,v 1.7 1997/02/09 16:37:13 mickey Exp $ */ +/* $OpenBSD: strip.c,v 1.8 1997/04/03 19:33:50 mickey Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)strip.c 5.8 (Berkeley) 11/6/91";*/ -static char rcsid[] = "$OpenBSD: strip.c,v 1.7 1997/02/09 16:37:13 mickey Exp $"; +static char rcsid[] = "$OpenBSD: strip.c,v 1.8 1997/04/03 19:33:50 mickey Exp $"; #endif /* not lint */ #include @@ -96,7 +96,7 @@ main(argc, argv) argv += optind; errors = 0; -#define ERROR(x) errors |= 1; warn(fn); continue; +#define ERROR(x) errors |= 1; warnx("%s: %s", fn, strerror(x)); continue; while (fn = *argv++) { if ((fd = open(fn, O_RDWR)) < 0) { ERROR(errno); -- 2.20.1