summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/sd-dhcp6-lease.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-12-01 14:07:22 +0100
committerThomas Haller <thaller@redhat.com>2022-12-09 08:58:07 +0100
commit6759b627201acb4dd1ab09546ef95229d0269c20 (patch)
tree63115223dc1274c7759cd160c10ea9fe1589c5e0 /src/libsystemd-network/sd-dhcp6-lease.c
parentsocket-util: add CMSG_TYPED_DATA() as type-safe wrapper around CMSG_DATA() (diff)
downloadsystemd-6759b627201acb4dd1ab09546ef95229d0269c20.tar.xz
systemd-6759b627201acb4dd1ab09546ef95229d0269c20.zip
all: avoid various "-Wcast-align=strict" warnings
Diffstat (limited to 'src/libsystemd-network/sd-dhcp6-lease.c')
-rw-r--r--src/libsystemd-network/sd-dhcp6-lease.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-lease.c b/src/libsystemd-network/sd-dhcp6-lease.c
index 57c23965ed..3dcccf1729 100644
--- a/src/libsystemd-network/sd-dhcp6-lease.c
+++ b/src/libsystemd-network/sd-dhcp6-lease.c
@@ -619,7 +619,7 @@ static int dhcp6_lease_parse_message(
return log_dhcp6_client_errno(client, SYNTHETIC_ERRNO(EINVAL),
"Received information refresh time option with an invalid length (%zu).", optlen);
- irt = unaligned_read_be32((be32_t *) optval) * USEC_PER_SEC;
+ irt = unaligned_read_be32(optval) * USEC_PER_SEC;
break;
}
}