Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix uv_loop_new() and uv_default_loop() function prototypes.

  • Loading branch information...
bnoordhuis committed Nov 6, 2011
1 parent c468e2a commit 7b973eb4ad0965594a350b0e69732d0acdcb89c7
Showing with 5 additions and 5 deletions.
  1. +2 −2 include/uv.h
  2. +2 −2 src/unix/core.c
  3. +1 −1 src/win/core.c
@@ -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
@@ -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);
@@ -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
@@ -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_;
}

0 comments on commit 7b973eb

Please sign in to comment.
You can’t perform that action at this time.