diff options
| author | dholland <dholland@NetBSD.org> | 2012-06-19 05:30:43 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2012-06-19 05:30:43 +0000 |
| commit | 60030fd11e6c646dbc35c5254b2520d5af45288f (patch) | |
| tree | 2d9c57e3deb2afa23793d42c8ba11c5b98398282 /larn/nap.c | |
| parent | 98b4affa216164b77e59278a2b1cdc3deee77716 (diff) | |
| download | bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.tar.gz bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.zip | |
WARNS=5
Diffstat (limited to 'larn/nap.c')
| -rw-r--r-- | larn/nap.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,9 +1,9 @@ -/* $NetBSD: nap.c,v 1.5 1997/10/18 20:03:36 christos Exp $ */ +/* $NetBSD: nap.c,v 1.6 2012/06/19 05:30:43 dholland Exp $ */ /* nap.c Larn is copyrighted 1986 by Noah Morgan. */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: nap.c,v 1.5 1997/10/18 20:03:36 christos Exp $"); +__RCSID("$NetBSD: nap.c,v 1.6 2012/06/19 05:30:43 dholland Exp $"); #endif /* not lint */ #include <unistd.h> @@ -14,8 +14,7 @@ __RCSID("$NetBSD: nap.c,v 1.5 1997/10/18 20:03:36 christos Exp $"); * routine to take a nap for n milliseconds */ void -nap(x) - int x; +nap(int x) { if (x <= 0) return; /* eliminate chance for infinite loop */ |
