summaryrefslogtreecommitdiff
path: root/lib/libc/gen/usleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/usleep.c')
-rw-r--r--lib/libc/gen/usleep.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/gen/usleep.c b/lib/libc/gen/usleep.c
index 9746f2cfb73..6aedc44de26 100644
--- a/lib/libc/gen/usleep.c
+++ b/lib/libc/gen/usleep.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: usleep.c,v 1.3 1996/08/19 08:27:19 tholo Exp $";
+static char rcsid[] = "$OpenBSD: usleep.c,v 1.4 1996/09/15 09:31:11 tholo Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/time.h>
@@ -41,6 +41,7 @@ static char rcsid[] = "$OpenBSD: usleep.c,v 1.3 1996/08/19 08:27:19 tholo Exp $"
#define TICK 10000 /* system clock resolution in microseconds */
+static void sleephandler __P((int));
static volatile int ringring;
void
@@ -50,7 +51,6 @@ usleep(useconds)
struct itimerval itv, oitv;
struct sigaction act, oact;
sigset_t set, oset;
- static void sleephandler();
if (!useconds)
return;
@@ -108,8 +108,10 @@ usleep(useconds)
(void) setitimer(ITIMER_REAL, &oitv, NULL);
}
+/* ARGSUSED */
static void
-sleephandler()
+sleephandler(sig)
+ int sig;
{
ringring = 1;
}