diff options
author | 2025-01-27 11:37:36 +0100 | |
---|---|---|
committer | 2025-01-27 20:23:43 +0100 | |
commit | 0f61e82ae97a6a71b218c251b354f7d20c628d6e (patch) | |
tree | bd462c37496feb942e2c5f47bf00c020d8ed8456 | |
parent | 4e1883610f38f1a39dd4088d7ec7686c0d432e1f (diff) | |
download | udp514-journal-main.tar.gz udp514-journal-main.tar.zst |
... just to keep the code in sync.
-rw-r--r-- | udp514-journal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/udp514-journal.c b/udp514-journal.c index c37da95..402785c 100644 --- a/udp514-journal.c +++ b/udp514-journal.c @@ -108,8 +108,8 @@ int main(int argc, char **argv) { } break; case AF_INET: - address = inet_ntop(AF_INET, &addr_client_in->sin_addr, - addr_buf, INET6_ADDRSTRLEN); + const struct in_addr *in_addr = &addr_client_in->sin_addr; + address = inet_ntop(AF_INET, in_addr, addr_buf, INET6_ADDRSTRLEN); break; default: fputs("unhadled address family", stderr); |