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/usleep.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/usleep.c')
-rw-r--r-- | lib/libc/gen/usleep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/usleep.c b/lib/libc/gen/usleep.c index 9e29f31..9a781e7 100644 --- a/lib/libc/gen/usleep.c +++ b/lib/libc/gen/usleep.c @@ -60,8 +60,8 @@ usleep(useconds) struct timespec time_to_sleep; if (useconds) { - time_to_sleep.ts_nsec = (useconds % 1000000) * 1000; - time_to_sleep.ts_sec = useconds / 1000000; + time_to_sleep.tv_nsec = (useconds % 1000000) * 1000; + time_to_sleep.tsvsec = useconds / 1000000; nanosleep(&time_to_sleep,NULL); } #else |