Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/games/larn/nap.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- src/games/larn/nap.c 1995/04/27 22:15:28 1.4 +++ src/games/larn/nap.c 1997/10/18 20:03:36 1.5 @@ -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 -#include +#include +#ifndef lint +__RCSID("$NetBSD: nap.c,v 1.5 1997/10/18 20:03:36 christos Exp $"); +#endif /* not lint */ + +#include +#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); +}