diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-09-05 08:01:26 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-09-05 08:01:26 +0000 |
| commit | ae59c2591e0aa5c4ddd569e57e96055876148f08 (patch) | |
| tree | bd5903dd9ffe4581c52ade1459e44b665783533a /lib/libc | |
| parent | 9b801a0d8612bac5999307a510aa6fbc0654d680 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/sleep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/sleep.c b/lib/libc/gen/sleep.c index 5789647c413c..898ff1c15c0f 100644 --- a/lib/libc/gen/sleep.c +++ b/lib/libc/gen/sleep.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)sleep.c 8.1 (Berkeley) 6/4/93"; #endif static char rcsid[] = - "$Id$"; + "$Id: sleep.c,v 1.22 1997/10/17 09:35:50 ache Exp $"; #endif /* LIBC_SCCS and not lint */ #include <errno.h> @@ -53,10 +53,10 @@ sleep(seconds) /* * Avoid overflow when `seconds' is huge. This assumes that - * the maximum value for a time_t is >= LONG_MAX. + * the maximum value for a time_t is >= INT_MAX. */ - if (seconds > LONG_MAX) - return (seconds - LONG_MAX + sleep(LONG_MAX)); + if (seconds > INT_MAX) + return (seconds - INT_MAX + sleep(INT_MAX)); time_to_sleep.tv_sec = seconds; time_to_sleep.tv_nsec = 0; |
