mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-19 14:29:34 +08:00
fix missing braces warning
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
This commit is contained in:
parent
6c27502757
commit
f3c8f70f47
@ -612,7 +612,7 @@ int client_on_udp_recv(conn_info_t &conn_info)
|
|||||||
{
|
{
|
||||||
int recv_len;
|
int recv_len;
|
||||||
char buf[buf_len];
|
char buf[buf_len];
|
||||||
address_t::storage_t udp_new_addr_in={0};
|
address_t::storage_t udp_new_addr_in={{0}};
|
||||||
socklen_t udp_new_addr_len = sizeof(address_t::storage_t);
|
socklen_t udp_new_addr_len = sizeof(address_t::storage_t);
|
||||||
if ((recv_len = recvfrom(udp_fd, buf, max_data_len+1, 0,
|
if ((recv_len = recvfrom(udp_fd, buf, max_data_len+1, 0,
|
||||||
(struct sockaddr *) &udp_new_addr_in, &udp_new_addr_len)) == -1) {
|
(struct sockaddr *) &udp_new_addr_in, &udp_new_addr_len)) == -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user