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) {