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

Commit

Permalink
Fix uv_loop_new() and uv_default_loop() function prototypes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Nov 6, 2011
1 parent c468e2a commit 7b973eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions include/uv.h
Expand Up @@ -190,14 +190,14 @@ typedef struct uv_work_s uv_work_t;
* All callbacks in libuv are made asynchronously. That is they are never
* made by the function that takes them as a parameter.
*/
UV_EXTERN uv_loop_t* uv_loop_new();
UV_EXTERN uv_loop_t* uv_loop_new(void);
UV_EXTERN void uv_loop_delete(uv_loop_t*);


/*
* Returns the default loop.
*/
UV_EXTERN uv_loop_t* uv_default_loop();
UV_EXTERN uv_loop_t* uv_default_loop(void);

/*
* This function starts the event loop. It blocks until the reference count
Expand Down
4 changes: 2 additions & 2 deletions src/unix/core.c
Expand Up @@ -158,7 +158,7 @@ void uv_close(uv_handle_t* handle, uv_close_cb close_cb) {
}


uv_loop_t* uv_loop_new() {
uv_loop_t* uv_loop_new(void) {
uv_loop_t* loop = calloc(1, sizeof(uv_loop_t));
loop->ev = ev_loop_new(0);
ev_set_userdata(loop->ev, loop);
Expand All @@ -173,7 +173,7 @@ void uv_loop_delete(uv_loop_t* loop) {
}


uv_loop_t* uv_default_loop() {
uv_loop_t* uv_default_loop(void) {
if (!default_loop_ptr) {
default_loop_ptr = &default_loop_struct;
#if HAVE_KQUEUE
Expand Down
2 changes: 1 addition & 1 deletion src/win/core.c
Expand Up @@ -99,7 +99,7 @@ static void uv_default_loop_init(void) {
}


uv_loop_t* uv_default_loop() {
uv_loop_t* uv_default_loop(void) {
uv_once(&uv_default_loop_init_guard_, uv_default_loop_init);
return &uv_default_loop_;
}
Expand Down

0 comments on commit 7b973eb

Please sign in to comment.