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

Commit

Permalink
const-ify handle argument to uv_is_closing()
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Apr 18, 2012
1 parent fb6c9ee commit edb39b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/uv.h
Expand Up @@ -552,7 +552,7 @@ UV_EXTERN int uv_is_writable(uv_stream_t* handle);
* and the arrival of the close callback, and cannot be used
* to validate the handle.
*/
UV_EXTERN int uv_is_closing(uv_handle_t* handle);
UV_EXTERN int uv_is_closing(const uv_handle_t* handle);


/*
Expand Down
2 changes: 1 addition & 1 deletion src/unix/core.c
Expand Up @@ -118,7 +118,7 @@ void uv_close(uv_handle_t* handle, uv_close_cb close_cb) {
}


int uv_is_closing(uv_handle_t* handle) {
int uv_is_closing(const uv_handle_t* handle) {
return handle->flags & (UV_CLOSING | UV_CLOSED);
}

Expand Down
2 changes: 1 addition & 1 deletion src/win/handle.c
Expand Up @@ -154,7 +154,7 @@ void uv_close(uv_handle_t* handle, uv_close_cb cb) {
}


int uv_is_closing(uv_handle_t* handle) {
int uv_is_closing(const uv_handle_t* handle) {
return handle->flags & (UV_HANDLE_CLOSING | UV_HANDLE_CLOSED);
}

Expand Down

0 comments on commit edb39b2

Please sign in to comment.