diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-03-17 10:57:43 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-03-17 10:57:43 +0100 |
commit | d32edee60a938c3ffdb227a94e1f3afac0e40177 (patch) | |
tree | bc27d319e3cd50b0f9e2cbf5d9065d7043c0e08e /passt.c | |
parent | f435e3892735929e98e493a3b0b3c755519970ea (diff) | |
download | passt-d32edee60a938c3ffdb227a94e1f3afac0e40177.tar passt-d32edee60a938c3ffdb227a94e1f3afac0e40177.tar.gz passt-d32edee60a938c3ffdb227a94e1f3afac0e40177.tar.bz2 passt-d32edee60a938c3ffdb227a94e1f3afac0e40177.tar.lz passt-d32edee60a938c3ffdb227a94e1f3afac0e40177.tar.xz passt-d32edee60a938c3ffdb227a94e1f3afac0e40177.tar.zst passt-d32edee60a938c3ffdb227a94e1f3afac0e40177.zip |
passt: Use INET{,6}_ADDRSTRLEN instead of open coded sizeof
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.c')
-rw-r--r-- | passt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -498,9 +498,9 @@ void usage(const char *name) */ int main(int argc, char **argv) { - char buf6[3][sizeof("0123:4567:89ab:cdef:0123:4567:89ab:cdef")]; - char buf4[4][sizeof("255.255.255.255")]; struct epoll_event events[EPOLL_EVENTS]; + char buf6[3][INET6_ADDRSTRLEN]; + char buf4[4][INET_ADDRSTRLEN]; struct epoll_event ev = { 0 }; struct timespec last_time; struct ctx c = { 0 }; |