unix, windows: make uv_timer_get_repeat() const correct

This commit is contained in:
Ben Noordhuis 2013-02-20 17:01:00 +01:00
parent 0cb9fbfe18
commit 30f6288347
3 changed files with 3 additions and 3 deletions

View File

@ -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);
/*

View File

@ -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;
}

View File

@ -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;
}