Provided in PR 12072 by Ben Collver (collver@linuxfreemail.com). Ularn is a fantasy games in which your child has contracted a strange dis- ease, and none of your home remedies seem to have any effect. You set out to find a remedy in a limited amount of time, and to collect gold along the way of course! Ularn is based on larn, and adds the concept of character classes.
56 lines
1 KiB
Text
56 lines
1 KiB
Text
$NetBSD: patch-as,v 1.1.1.1 2001/04/27 15:27:31 agc Exp $
|
|
|
|
--- nap.c.orig Sat Jan 13 20:39:28 2001
|
|
+++ nap.c Sat Jan 13 20:38:50 2001
|
|
@@ -1,12 +1,14 @@
|
|
/* nap.c */
|
|
+#include <unistd.h>
|
|
#include "header.h"
|
|
+#include "extern.h"
|
|
|
|
int nonap = 0;
|
|
|
|
/*
|
|
* routine to take a nap for n milliseconds
|
|
*/
|
|
-nap(x)
|
|
+void nap(x)
|
|
int x;
|
|
{
|
|
if (x<=0 || nonap)
|
|
@@ -23,7 +25,7 @@
|
|
SIGTYPE nullf(sig)int sig; { }
|
|
|
|
/* napms - sleep for time milliseconds - uses setitimer() */
|
|
-napms(time)
|
|
+void napms(time)
|
|
int time;
|
|
{
|
|
struct itimerval timeout;
|
|
@@ -48,7 +50,7 @@
|
|
# ifdef FTIMER
|
|
/* napms - sleep for time milliseconds - uses ftime() */
|
|
|
|
-napms(time)
|
|
+void napms(time)
|
|
int time;
|
|
{
|
|
struct timeb _gtime;
|
|
@@ -75,7 +77,7 @@
|
|
# else /* FTIMER */
|
|
# ifdef HZ
|
|
/* napms - sleep for time milliseconds - uses times() */
|
|
-napms(time)
|
|
+void napms(time)
|
|
int time;
|
|
{
|
|
long matchclock, times();
|
|
@@ -90,7 +92,7 @@
|
|
;
|
|
}
|
|
# else
|
|
-napms(x) int x; {}
|
|
+void napms(x) int x; {}
|
|
# endif /* HZ */
|
|
# endif /* FTIMER */
|
|
#endif /* ITIMER */
|