mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
Address compiler warning on older gcc
This commit is contained in:
parent
183e0c969a
commit
6957b16537
|
@ -742,7 +742,7 @@ extern char * sock_to_cstr (n2n_sock_str_t out,
|
||||||
memset(out, 0, N2N_SOCKBUF_SIZE);
|
memset(out, 0, N2N_SOCKBUF_SIZE);
|
||||||
|
|
||||||
if(AF_INET6 == sock->family) {
|
if(AF_INET6 == sock->family) {
|
||||||
char tmp[sizeof(n2n_sock_str_t)];
|
char tmp[INET6_ADDRSTRLEN+1];
|
||||||
|
|
||||||
tmp[0] = '\0';
|
tmp[0] = '\0';
|
||||||
inet_ntop(AF_INET6, sock->addr.v6, tmp, sizeof(n2n_sock_str_t));
|
inet_ntop(AF_INET6, sock->addr.v6, tmp, sizeof(n2n_sock_str_t));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user