X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/d3d5ba33a16a10c2f0c3389d07a6b55f98d50093..HEAD:/larn/nap.c

diff --git a/larn/nap.c b/larn/nap.c
index 4945299c..1bd11ea6 100644
--- a/larn/nap.c
+++ b/larn/nap.c
@@ -1,18 +1,23 @@
-#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.6 2012/06/19 05:30:43 dholland 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.6 2012/06/19 05:30:43 dholland Exp $");
+#endif				/* not lint */
+
+#include <unistd.h>
+#include "header.h"
+#include "extern.h"
 
 /*
  *	routine to take a nap for n milliseconds
  */
-nap(x)
-	register int x;
-	{
-	if (x<=0) return; /* eliminate chance for infinite loop */
+void
+nap(int x)
+{
+	if (x <= 0)
+		return;		/* eliminate chance for infinite loop */
 	lflush();
-	usleep(x*1000);
-	}
+	usleep(x * 1000);
+}