diff options
author | christos <christos@NetBSD.org> | 1997-10-18 20:03:05 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 1997-10-18 20:03:05 +0000 |
commit | f73f1009084e75624e3bc00fef9cf4749de80dcc (patch) | |
tree | 10cc39737f667f056c5537c3fba7cf4d2a832c9d /larn/nap.c | |
parent | 39d5db4411fe42946cd3d94eb7d275f3f453d6aa (diff) | |
download | bsdgames-darwin-f73f1009084e75624e3bc00fef9cf4749de80dcc.tar.gz bsdgames-darwin-f73f1009084e75624e3bc00fef9cf4749de80dcc.tar.zst bsdgames-darwin-f73f1009084e75624e3bc00fef9cf4749de80dcc.zip |
Tons of changes; re-indent, use termios, fix warnings, add prototypes...
Games is almost clean; only hack is left...
Diffstat (limited to 'larn/nap.c')
-rw-r--r-- | larn/nap.c | 26 |
1 files changed, 16 insertions, 10 deletions
@@ -1,18 +1,24 @@ -#ifndef lint -static char rcsid[] = "$NetBSD: nap.c,v 1.4 1995/04/27 22:15:28 mycroft Exp $"; -#endif /* not lint */ +/* $NetBSD: nap.c,v 1.5 1997/10/18 20:03:36 christos Exp $ */ /* nap.c Larn is copyrighted 1986 by Noah Morgan. */ -#include <signal.h> -#include <sys/types.h> +#include <sys/cdefs.h> +#ifndef lint +__RCSID("$NetBSD: nap.c,v 1.5 1997/10/18 20:03:36 christos Exp $"); +#endif /* not lint */ + +#include <unistd.h> +#include "header.h" +#include "extern.h" /* * routine to take a nap for n milliseconds */ +void nap(x) - register int x; - { - if (x<=0) return; /* eliminate chance for infinite loop */ + int x; +{ + if (x <= 0) + return; /* eliminate chance for infinite loop */ lflush(); - usleep(x*1000); - } + usleep(x * 1000); +} |