mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
Add const in the thread version of nanosleep()'s args
This commit is contained in:
parent
757d77dcf5
commit
a8320cdfe5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25738
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user