From: =?utf-8?b?0L3QsNCx?= Date: Sun, 27 Apr 2025 16:02:49 +0200 Subject: Fix -Wimplicit-int (Closes: #1074907) --- src/desproxy-socksserver.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/desproxy-socksserver.c b/src/desproxy-socksserver.c index d930bfc..d194282 100644 --- a/src/desproxy-socksserver.c +++ b/src/desproxy-socksserver.c @@ -42,7 +42,7 @@ parse_command_line (int argc, char **argv) * invoked for the first time something is read */ void -nothing_read (connection) +nothing_read (int connection) { debug_printf (">nothing_read()\n"); if (read (client_socket[connection], buffer, 1) == -1) @@ -81,7 +81,7 @@ nothing_read (connection) * invoked when we read the protocol header and it is 4 */ void -protocol_v4_ok (connection) +protocol_v4_ok (int connection) { debug_printf (">protocol_v4_ok()\n"); if (read (client_socket[connection], buffer, 1) == -1) @@ -110,7 +110,7 @@ protocol_v4_ok (connection) * invoked when we read the protocol header and it is 5 */ void -protocol_v5_ok (connection) +protocol_v5_ok (int connection) { debug_printf (">protocol_v5_ok()\n"); if (read (client_socket[connection], buffer, 1) == -1) @@ -130,7 +130,7 @@ protocol_v5_ok (connection) * Invoked when the method is accepted for protocol version 4 */ void -method_accepted_v4 (connection) +method_accepted_v4 (int connection) { debug_printf (">method_accepted()\n"); if (read (client_socket[connection], buffer, 6) == -1) @@ -178,7 +178,7 @@ method_accepted_v4 (connection) * Invoked when the method is accepted for protocol version 5 */ void -method_accepted_v5 (connection) +method_accepted_v5 (int connection) { unsigned char index; @@ -274,7 +274,7 @@ method_accepted_v5 (connection) } void -nmethods_read (connection) +nmethods_read (int connection) { unsigned char index; debug_printf (">nmethods_read()\n"); @@ -313,7 +313,7 @@ nmethods_read (connection) * Invoked for transcactions when the client is accepted yet */ void -biconnected (connection) +biconnected (int connection) { int count; debug_printf (">biconnected()\n");