summaryrefslogtreecommitdiffstats
path: root/caesar
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1996-02-06 22:47:06 +0000
committerjtc <jtc@NetBSD.org>1996-02-06 22:47:06 +0000
commit46b902da5252697ebfccc29f3d5525122fbf1033 (patch)
treef7c6fcdeb002325c6f5303f8bbe64561e7226af0 /caesar
parentde10823315b591023db0037ec148e6f7f8e647bc (diff)
downloadbsdgames-darwin-46b902da5252697ebfccc29f3d5525122fbf1033.tar.gz
bsdgames-darwin-46b902da5252697ebfccc29f3d5525122fbf1033.tar.zst
bsdgames-darwin-46b902da5252697ebfccc29f3d5525122fbf1033.zip
Removed "extern int errno"; Added #include <errno.h> if not already present.
Diffstat (limited to 'caesar')
-rw-r--r--caesar/caesar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/caesar/caesar.c b/caesar/caesar.c
index de5a2e8a..2d4772e7 100644
--- a/caesar/caesar.c
+++ b/caesar/caesar.c
@@ -1,4 +1,4 @@
-/* $NetBSD: caesar.c,v 1.3 1995/03/21 15:08:21 cgd Exp $ */
+/* $NetBSD: caesar.c,v 1.4 1996/02/06 22:47:15 jtc Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -51,7 +51,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)caesar.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: caesar.c,v 1.3 1995/03/21 15:08:21 cgd Exp $";
+static char rcsid[] = "$NetBSD: caesar.c,v 1.4 1996/02/06 22:47:15 jtc Exp $";
#endif
#endif /* not lint */
@@ -59,6 +59,7 @@ static char rcsid[] = "$NetBSD: caesar.c,v 1.3 1995/03/21 15:08:21 cgd Exp $";
#include <stdio.h>
#include <ctype.h>
#include <unistd.h>
+#include <errno.h>
#define LINELENGTH 2048
#define ROTATE(ch, perm) \
@@ -79,7 +80,6 @@ main(argc, argv)
int argc;
char **argv;
{
- extern int errno;
register int ch, dot, i, nread, winnerdot;
register char *inbuf;
int obs[26], try, winner;