summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-21 21:51:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-21 21:51:19 +0000
commit937172ebee44a9e33a74b46c1e04570902a87d83 (patch)
tree3ed9626d7c48f5448c78cbb86ff02889c830a796 /usr.bin
parente43d7ce681593767afe835dff839f18adce836b4 (diff)
errno.h provides what we need
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/indent/indent.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c
index dd923b519f8..c33398f0426 100644
--- a/usr.bin/indent/indent.c
+++ b/usr.bin/indent/indent.c
@@ -43,7 +43,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)indent.c 5.16 (Berkeley) 2/26/91";*/
-static char rcsid[] = "$Id: indent.c,v 1.1 1995/10/18 08:45:25 deraadt Exp $";
+static char rcsid[] = "$Id: indent.c,v 1.2 1996/05/21 21:51:18 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -55,6 +55,7 @@ static char rcsid[] = "$Id: indent.c,v 1.1 1995/10/18 08:45:25 deraadt Exp $";
#include "indent_globs.h"
#include "indent_codes.h"
#include <ctype.h>
+#include <errno.h>
char *in_name = "Standard Input"; /* will always point to name of input
* file */
@@ -1174,9 +1175,6 @@ bakcopy()
err(msg)
char *msg;
{
- extern int errno;
- char *strerror();
-
(void)fprintf(stderr, "indent: %s: %s\n", msg, strerror(errno));
exit(1);
}