diff options
author | nate <nate@FreeBSD.org> | 1996-09-20 06:06:28 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1996-09-20 06:06:28 +0000 |
commit | 934efd0502462dcd9fa380eaee3b55c8c91a0cdc (patch) | |
tree | f7bc2eb5ff0261b4d773bb6d356613935f87dd49 /lib/libc/gen/sleep.c | |
parent | 41b14ae59f9f66d7d6d535b533b95b59af36964b (diff) | |
download | FreeBSD-src-934efd0502462dcd9fa380eaee3b55c8c91a0cdc.zip FreeBSD-src-934efd0502462dcd9fa380eaee3b55c8c91a0cdc.tar.gz |
ts_sec -> tv_sec
ts_nsec -> tv_nsec
Diffstat (limited to 'lib/libc/gen/sleep.c')
-rw-r--r-- | lib/libc/gen/sleep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/sleep.c b/lib/libc/gen/sleep.c index b06475d..b3dd8b7 100644 --- a/lib/libc/gen/sleep.c +++ b/lib/libc/gen/sleep.c @@ -58,10 +58,10 @@ sleep(seconds) struct timespec time_remaining; if (seconds) { - time_to_sleep.ts_sec = seconds; - time_to_sleep.ts_nsec = 0; + time_to_sleep.tv_sec = seconds; + time_to_sleep.tv_nsec = 0; nanosleep(&time_to_sleep,&time_remaining); - seconds = time_remaining.ts_sec; + seconds = time_remaining.tv_sec; } return(seconds); #else |