diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-13 11:34:59 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-16 06:26:58 +0200 |
commit | b5d39bb3cae7e36c284fcfcc87a42ff8a2bae7f5 (patch) | |
tree | 339fb56fc9f0c8292db75e60d8c5bcca45bf06ee /src/resolve/resolved-manager.c | |
parent | sd-dhcp-server: use CMSG_FIND_DATA() at one more place (diff) | |
download | systemd-b5d39bb3cae7e36c284fcfcc87a42ff8a2bae7f5.tar.xz systemd-b5d39bb3cae7e36c284fcfcc87a42ff8a2bae7f5.zip |
tree-wide: also use CMSG_TYPED_DATA() on writing message header
Diffstat (limited to '')
-rw-r--r-- | src/resolve/resolved-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c index e5e1411a13..184d8e3f3d 100644 --- a/src/resolve/resolved-manager.c +++ b/src/resolve/resolved-manager.c @@ -1017,7 +1017,7 @@ static int manager_ipv4_send( cmsg->cmsg_level = IPPROTO_IP; cmsg->cmsg_type = IP_PKTINFO; - pi = (struct in_pktinfo*) CMSG_DATA(cmsg); + pi = CMSG_TYPED_DATA(cmsg, struct in_pktinfo); pi->ipi_ifindex = ifindex; if (source) @@ -1073,7 +1073,7 @@ static int manager_ipv6_send( cmsg->cmsg_level = IPPROTO_IPV6; cmsg->cmsg_type = IPV6_PKTINFO; - pi = (struct in6_pktinfo*) CMSG_DATA(cmsg); + pi = CMSG_TYPED_DATA(cmsg, struct in6_pktinfo); pi->ipi6_ifindex = ifindex; if (source) |