関数宣言に戻り値を追加
- warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int
- warning: non-void function does not return a value
- static void を追加
@@ -126,7 +126,8 @@ | ||
126 | 126 | return UTIL_sock_buffered_write(pvar, &c->writebuf, dummy_blocking_write, c->local_socket, data, len); |
127 | 127 | } |
128 | 128 | |
129 | -send_socks4_reply(FWDDynamicFilterClosure *closure, int code) { | |
129 | +static void send_socks4_reply(FWDDynamicFilterClosure *closure, int code) | |
130 | +{ | |
130 | 131 | unsigned char buff[] = { |
131 | 132 | 0, // NUL |
132 | 133 | SOCKS4_RESULT_NG, // status |