From 30f628834782c1639b3a794212e8f6a4fb5a027a Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 20 Feb 2013 17:01:00 +0100 Subject: [PATCH] unix, windows: make uv_timer_get_repeat() const correct --- include/uv.h | 2 +- src/unix/timer.c | 2 +- src/win/timer.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/uv.h b/include/uv.h index 453b90c4..4d6a2e80 100644 --- a/include/uv.h +++ b/include/uv.h @@ -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); /* diff --git a/src/unix/timer.c b/src/unix/timer.c index 5c4208ec..41038c8a 100644 --- a/src/unix/timer.c +++ b/src/unix/timer.c @@ -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; } diff --git a/src/win/timer.c b/src/win/timer.c index 60991295..0c055da9 100644 --- a/src/win/timer.c +++ b/src/win/timer.c @@ -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; }