unix, windows: make uv_timer_get_repeat() const correct
This commit is contained in:
parent
0cb9fbfe18
commit
30f6288347
@ -1193,7 +1193,7 @@ UV_EXTERN int uv_timer_again(uv_timer_t* handle);
|
||||
*/
|
||||
UV_EXTERN void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat);
|
||||
|
||||
UV_EXTERN uint64_t uv_timer_get_repeat(uv_timer_t* handle);
|
||||
UV_EXTERN uint64_t uv_timer_get_repeat(const uv_timer_t* handle);
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@ -99,7 +99,7 @@ void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat) {
|
||||
}
|
||||
|
||||
|
||||
uint64_t uv_timer_get_repeat(uv_timer_t* handle) {
|
||||
uint64_t uv_timer_get_repeat(const uv_timer_t* handle) {
|
||||
return handle->repeat;
|
||||
}
|
||||
|
||||
|
||||
@ -163,7 +163,7 @@ void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat) {
|
||||
}
|
||||
|
||||
|
||||
uint64_t uv_timer_get_repeat(uv_timer_t* handle) {
|
||||
uint64_t uv_timer_get_repeat(const uv_timer_t* handle) {
|
||||
assert(handle->type == UV_TIMER);
|
||||
return handle->repeat;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user