-/* $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.
#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 <sys/param.h>
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);