summaryrefslogtreecommitdiff
path: root/src/journal-remote
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-05-10 17:24:48 +0200
committerLennart Poettering <lennart@poettering.net>2021-05-11 15:42:11 +0200
commita481753648da77758b13b82e8d82be8e332f515e (patch)
tree154c9200f061299970cd7839beb52afa097bdba7 /src/journal-remote
parent23118193d23438f9fdb4dd31c9acc5d6bfcc393c (diff)
downloadsystemd-a481753648da77758b13b82e8d82be8e332f515e.tar.gz
tree-wide: use af_to_ipv4_ipv6() + af_from_ipv4_ipv6() helpers at various places
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/journal-remote.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c
index 9600e5f732..13461dbe41 100644
--- a/src/journal-remote/journal-remote.c
+++ b/src/journal-remote/journal-remote.c
@@ -8,6 +8,7 @@
#include "sd-daemon.h"
+#include "af-list.h"
#include "alloc-util.h"
#include "def.h"
#include "errno-util.h"
@@ -498,7 +499,7 @@ static int accept_connection(
log_debug("Accepted %s %s connection from %s",
type,
- socket_address_family(addr) == AF_INET ? "IP" : "IPv6",
+ af_to_ipv4_ipv6(socket_address_family(addr)),
a);
*hostname = b;