Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix, windows: uv_now constness
Browse files Browse the repository at this point in the history
uv_now doesnt require modification of uv_loop_t as such argument is
changed to a const uv_loop_t* as this more in spirit with remaining
API in libuv.
  • Loading branch information
zerhacken authored and saghul committed Apr 29, 2014
1 parent 4d905fb commit 87ae69b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/uv.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ UV_EXTERN void uv_update_time(uv_loop_t*);
*
* Use uv_hrtime() if you need sub-millisecond granularity.
*/
UV_EXTERN uint64_t uv_now(uv_loop_t*);
UV_EXTERN uint64_t uv_now(const uv_loop_t*);

/*
* Get backend file descriptor. Only kqueue, epoll and event ports are
Expand Down
2 changes: 1 addition & 1 deletion src/uv-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ void uv_stop(uv_loop_t* loop) {
}


uint64_t uv_now(uv_loop_t* loop) {
uint64_t uv_now(const uv_loop_t* loop) {
return loop->time;
}

Expand Down

0 comments on commit 87ae69b

Please sign in to comment.