summaryrefslogtreecommitdiffstats
path: root/games/worms
diff options
context:
space:
mode:
authorpjanzen <pjanzen@openbsd.org>1998-08-19 07:39:48 +0000
committerpjanzen <pjanzen@openbsd.org>1998-08-19 07:39:48 +0000
commit1ed0e75d51eaf94b122dcac31a3948479297571d (patch)
tree73e163e6d84be288a56a35c4aa809dd138cdd931 /games/worms
parentMake kvm_mkdb work again (diff)
downloadwireguard-openbsd-1ed0e75d51eaf94b122dcac31a3948479297571d.tar.xz
wireguard-openbsd-1ed0e75d51eaf94b122dcac31a3948479297571d.zip
tags, formatting, ANSI-fication, prototypes, de-typos, and the occasional
initialization, removal of unused variable, or other minor fix. Most changes are from or inspired by NetBSD.
Diffstat (limited to 'games/worms')
-rw-r--r--games/worms/worms.66
-rw-r--r--games/worms/worms.c10
2 files changed, 7 insertions, 9 deletions
diff --git a/games/worms/worms.6 b/games/worms/worms.6
index 41ae527af0f..4de05eb3d6b 100644
--- a/games/worms/worms.6
+++ b/games/worms/worms.6
@@ -1,4 +1,4 @@
-.\" $OpenBSD: worms.6,v 1.3 1998/03/12 09:09:32 pjanzen Exp $
+.\" $OpenBSD: worms.6,v 1.4 1998/08/19 07:42:23 pjanzen Exp $
.\"
.\" Copyright (c) 1989, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -39,14 +39,14 @@
.Nm worms
.Nd animate worms on a display terminal
.Sh SYNOPSIS
-.Nm worms
+.Nm
.Op Fl ft
.Op Fl d Ar delay
.Op Fl l Ar length
.Op Fl n Ar number
.Sh DESCRIPTION
A
-.Tn UNIX
+.Ux
version of the DEC-2136 program ``worms''.
.Pp
The options are as follows:
diff --git a/games/worms/worms.c b/games/worms/worms.c
index 58aec7d118e..72b834d2cf1 100644
--- a/games/worms/worms.c
+++ b/games/worms/worms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: worms.c,v 1.7 1998/03/12 09:09:34 pjanzen Exp $ */
+/* $OpenBSD: worms.c,v 1.8 1998/08/19 07:42:24 pjanzen Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: worms.c,v 1.7 1998/03/12 09:09:34 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: worms.c,v 1.8 1998/08/19 07:42:24 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -184,16 +184,15 @@ static struct worm {
} *worm;
int fputchar __P((int));
+void nomem __P(());
void onsig __P((int));
-void nomem __P(());
int
main(argc, argv)
int argc;
char *argv[];
{
- extern int optind;
- extern char *optarg, *UP;
+ extern char *UP;
register int x, y, h, n;
register struct worm *w;
register struct options *op;
@@ -203,7 +202,6 @@ main(argc, argv)
short **ref;
char *AL, *BC, *CM, *EI, *HO, *IC, *IM, *IP, *SR;
char *field, tcb[100], *mp;
- long random();
u_int delay = 0;
struct termios ti;
#ifdef TIOCGWINSZ