-/* $NetBSD: worms.c,v 1.21 2011/08/31 16:24:56 plunky Exp $ */
+/* $NetBSD: worms.c,v 1.23 2020/10/14 07:32:53 nia Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: worms.c,v 1.21 2011/08/31 16:24:56 plunky Exp $");
+__RCSID("$NetBSD: worms.c,v 1.23 2020/10/14 07:32:53 nia Exp $");
#endif
#endif /* not lint */
static void onsig(int);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int x, y, h, n;
struct worm *w;
short **ref;
const char *field;
char *mp;
- unsigned int delay = 0;
+ unsigned int delay = 20000;
mp = NULL;
length = 16;
}
static void
-onsig(signo)
- int signo __unused;
+onsig(int signo __unused)
{
sig_caught = 1;
}
static void
-nomem()
+nomem(void)
{
errx(1, "not enough memory.");
}