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

Commit

Permalink
Fix 'incomplete prototype' compiler warnings on SunOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Aug 22, 2011
1 parent 062af9f commit 6cc241a
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions include/uv.h
Expand Up @@ -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,
Expand Down Expand Up @@ -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; \
Expand Down

0 comments on commit 6cc241a

Please sign in to comment.