summaryrefslogtreecommitdiffstats
path: root/battlestar/init.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-11 02:06:55 +0000
committerlukem <lukem@NetBSD.org>1997-10-11 02:06:55 +0000
commit61a235f9c8a332df14e8fe40b7b1fcaa98ecc548 (patch)
tree50f20c42070d381297a96acd027002bc10e84095 /battlestar/init.c
parent098ef9272dbfc3deff7afcd768ea90836e72a163 (diff)
downloadbsdgames-darwin-61a235f9c8a332df14e8fe40b7b1fcaa98ecc548.tar.gz
bsdgames-darwin-61a235f9c8a332df14e8fe40b7b1fcaa98ecc548.tar.zst
bsdgames-darwin-61a235f9c8a332df14e8fe40b7b1fcaa98ecc548.zip
KNFify (with indent)
Diffstat (limited to 'battlestar/init.c')
-rw-r--r--battlestar/init.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/battlestar/init.c b/battlestar/init.c
index 6627984d..a582545f 100644
--- a/battlestar/init.c
+++ b/battlestar/init.c
@@ -1,4 +1,4 @@
-/* $NetBSD: init.c,v 1.6 1997/10/10 11:40:01 lukem Exp $ */
+/* $NetBSD: init.c,v 1.7 1997/10/11 02:07:25 lukem Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,15 +38,15 @@
#if 0
static char sccsid[] = "@(#)init.c 8.4 (Berkeley) 4/30/95";
#else
-__RCSID("$NetBSD: init.c,v 1.6 1997/10/10 11:40:01 lukem Exp $");
+__RCSID("$NetBSD: init.c,v 1.7 1997/10/11 02:07:25 lukem Exp $");
#endif
-#endif /* not lint */
+#endif /* not lint */
#include "extern.h"
void
initialize(startup)
- char startup;
+ char startup;
{
struct objs *p;
@@ -75,7 +75,7 @@ initialize(startup)
void
getutmp(uname)
- char *uname;
+ char *uname;
{
struct passwd *ptr;
@@ -83,7 +83,7 @@ getutmp(uname)
strcpy(uname, ptr ? ptr->pw_name : "");
}
-char *list[] = { /* hereditary wizards */
+char *list[] = { /* hereditary wizards */
"riggle",
"chris",
"edward",
@@ -94,7 +94,7 @@ char *list[] = { /* hereditary wizards */
0
};
-char *badguys[] = {
+char *badguys[] = {
"wnj",
"root",
"ted",
@@ -103,9 +103,9 @@ char *badguys[] = {
int
wizard(uname)
- char *uname;
+ char *uname;
{
- int flag;
+ int flag;
if ((flag = checkout(uname)) != 0)
printf("You are the Great wizard %s.\n", uname);
@@ -114,9 +114,9 @@ wizard(uname)
int
checkout(uname)
- char *uname;
+ char *uname;
{
- char **ptr;
+ char **ptr;
for (ptr = list; *ptr; ptr++)
if (strcmp(*ptr, uname) == 0)
@@ -124,7 +124,7 @@ checkout(uname)
for (ptr = badguys; *ptr; ptr++)
if (strcmp(*ptr, uname) == 0) {
printf("You are the Poor anti-wizard %s. Good Luck!\n",
- uname);
+ uname);
CUMBER = 3;
WEIGHT = 9; /* that'll get him! */
ourclock = 10;