Add const in the thread version of nanosleep()'s args

This commit is contained in:
Peter Wemm 1997-05-12 10:02:18 +00:00
parent 757d77dcf5
commit a8320cdfe5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25738
3 changed files with 6 additions and 3 deletions

View File

@ -37,7 +37,8 @@
#include "pthread_private.h"
int
nanosleep(struct timespec * time_to_sleep, struct timespec * time_remaining)
_thread_nanosleep(const struct timespec * time_to_sleep,
struct timespec * time_remaining)
{
int ret = 0;
struct timespec current_time;

View File

@ -37,7 +37,8 @@
#include "pthread_private.h"
int
nanosleep(struct timespec * time_to_sleep, struct timespec * time_remaining)
_thread_nanosleep(const struct timespec * time_to_sleep,
struct timespec * time_remaining)
{
int ret = 0;
struct timespec current_time;

View File

@ -37,7 +37,8 @@
#include "pthread_private.h"
int
nanosleep(struct timespec * time_to_sleep, struct timespec * time_remaining)
_thread_nanosleep(const struct timespec * time_to_sleep,
struct timespec * time_remaining)
{
int ret = 0;
struct timespec current_time;