Permalink
Browse files

unix: fix up function prototypes in signal.c

  • Loading branch information...
1 parent 87cbf8d commit 0a06c2f3b2f42e9a9ae57331d9d5d68e54f00670 @bnoordhuis bnoordhuis committed Jan 6, 2013
Showing with 5 additions and 5 deletions.
  1. +1 −1 src/unix/internal.h
  2. +4 −4 src/unix/signal.c
View
@@ -156,7 +156,7 @@ int uv__next_timeout(const uv_loop_t* loop);
/* signal */
void uv__signal_close(uv_signal_t* handle);
void uv__signal_global_once_init(void);
-void uv__signal_loop_cleanup();
+void uv__signal_loop_cleanup(uv_loop_t* loop);
/* thread pool */
void uv__work_submit(uv_loop_t* loop,
View
@@ -54,7 +54,7 @@ RB_GENERATE_STATIC(uv__signal_tree_s,
uv__signal_compare)
-static void uv__signal_global_init() {
+static void uv__signal_global_init(void) {
if (uv__make_pipe(uv__signal_lock_pipefd, 0))
abort();
@@ -69,7 +69,7 @@ void uv__signal_global_once_init(void) {
-static int uv__signal_lock() {
+static int uv__signal_lock(void) {
int r;
char data;
@@ -81,7 +81,7 @@ static int uv__signal_lock() {
}
-static int uv__signal_unlock() {
+static int uv__signal_unlock(void) {
int r;
char data = 42;
@@ -133,7 +133,7 @@ inline static uv_signal_t* uv__signal_first_handle(int signum) {
}
-void uv__signal_handler(int signum) {
+static void uv__signal_handler(int signum) {
uv__signal_msg_t msg;
uv_signal_t* handle;

0 comments on commit 0a06c2f

Please sign in to comment.