From 6cc241ac7aec20303c071fd8ab202e3dd068c6a5 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 22 Aug 2011 13:50:44 +0000 Subject: [PATCH] Fix 'incomplete prototype' compiler warnings on SunOS. --- include/uv.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/include/uv.h b/include/uv.h index 51e70866..8338fdb7 100644 --- a/include/uv.h +++ b/include/uv.h @@ -96,17 +96,6 @@ void uv_unref(); void uv_update_time(); int64_t uv_now(); -/* - * Most functions return boolean: 0 for success and -1 for failure. - * On error the user should then call uv_last_error() to determine - * the error code. - */ -uv_err_t uv_last_error(); -char* uv_strerror(uv_err_t err); -const char* uv_err_name(uv_err_t err); - - - /* * The status parameter is 0 if the request completed successfully, @@ -217,6 +206,16 @@ struct uv_err_s { }; +/* + * Most functions return boolean: 0 for success and -1 for failure. + * On error the user should then call uv_last_error() to determine + * the error code. + */ +uv_err_t uv_last_error(); +char* uv_strerror(uv_err_t err); +const char* uv_err_name(uv_err_t err); + + #define UV_REQ_FIELDS \ /* read-only */ \ uv_req_type type; \