summaryrefslogtreecommitdiff
path: root/games/ularn/patches/patch-as
blob: 36042b15efa6aad59eb6c27d21a0fd3b6f06c359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
$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 */