Avoid implicit int type

This commit is contained in:
Pierre Ossman 2017-10-18 16:35:42 +02:00
parent 89bbb64145
commit 93842aa798
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

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