const-ify handle argument to uv_is_closing()

This commit is contained in:
Ben Noordhuis 2012-04-18 03:11:25 +02:00
parent fb6c9eef2a
commit edb39b2499
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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