diff options
| author | mycroft <mycroft@NetBSD.org> | 2005-01-06 17:34:52 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 2005-01-06 17:34:52 +0000 |
| commit | e890aef25872b9c4f80b82b8cadeb36af33bd9fb (patch) | |
| tree | bc7a1fbb2a06fed8335bda558985d7855186fdee /lib/libpthread | |
| parent | 8fa85b4a6533033ea7fbe7c66ecfba8b89b62461 (diff) | |
Use TIMER_RELTIME rather than the constant 0 in one place.
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/pthread_sa.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libpthread/pthread_sa.c b/lib/libpthread/pthread_sa.c index 483d5450719..2b4e49b2587 100644 --- a/lib/libpthread/pthread_sa.c +++ b/lib/libpthread/pthread_sa.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_sa.c,v 1.33 2004/10/12 22:17:56 mycroft Exp $ */ +/* $NetBSD: pthread_sa.c,v 1.34 2005/01/06 17:34:52 mycroft Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread_sa.c,v 1.33 2004/10/12 22:17:56 mycroft Exp $"); +__RCSID("$NetBSD: pthread_sa.c,v 1.34 2005/01/06 17:34:52 mycroft Exp $"); #include <err.h> #include <errno.h> @@ -656,7 +656,8 @@ pthread__setrrtimer(int msec, int startit) it.it_interval.tv_sec = 0; it.it_interval.tv_nsec = (long)msec * 1000000; it.it_value = it.it_interval; - if (timer_settime(pthread_rrtimer, 0, &it, NULL) == -1) + if (timer_settime(pthread_rrtimer, TIMER_RELTIME, &it, NULL) == + -1) return (errno); } |
