From 93842aa7984fcc78f98edc16b70b0cf13f0b7d5e Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 18 Oct 2017 16:35:42 +0200 Subject: [PATCH] Avoid implicit int type --- other/websocket.c | 2 +- other/websockify.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/other/websocket.c b/other/websocket.c index 5cf72ff..2c9350f 100644 --- a/other/websocket.c +++ b/other/websocket.c @@ -668,7 +668,7 @@ ws_ctx_t *do_handshake(int sock) { return ws_ctx; } -void signal_handler(sig) { +void signal_handler(int sig) { switch (sig) { case SIGHUP: break; // ignore for now case SIGPIPE: pipe_error = 1; break; // handle inline diff --git a/other/websockify.c b/other/websockify.c index f6ce89d..2e05bf8 100644 --- a/other/websockify.c +++ b/other/websockify.c @@ -50,7 +50,7 @@ char USAGE[] = "Usage: [options] " \ char target_host[256]; int target_port; -extern pipe_error; +extern int pipe_error; extern settings_t settings; void do_proxy(ws_ctx_t *ws_ctx, int target) {