mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
Merge pull request #12301 from keszybz/silence-alignment-warning
Silence alignment warning
This commit is contained in:
commit
929b02b5b8
@ -10,11 +10,11 @@ typedef struct {
|
||||
} genl_family;
|
||||
|
||||
static const genl_family genl_families[] = {
|
||||
[SD_GENL_ID_CTRL] = { .name = "", .version = 1 },
|
||||
[SD_GENL_ID_CTRL] = { .name = "", .version = 1 },
|
||||
[SD_GENL_WIREGUARD] = { .name = "wireguard", .version = 1 },
|
||||
[SD_GENL_FOU] = { .name = "fou", .version = 1 },
|
||||
[SD_GENL_L2TP] = { .name = "l2tp", .version = 1},
|
||||
[SD_GENL_MACSEC] = { .name = "macsec", .version = 1},
|
||||
[SD_GENL_FOU] = { .name = "fou", .version = 1 },
|
||||
[SD_GENL_L2TP] = { .name = "l2tp", .version = 1 },
|
||||
[SD_GENL_MACSEC] = { .name = "macsec", .version = 1 },
|
||||
};
|
||||
|
||||
int sd_genl_socket_open(sd_netlink **ret) {
|
||||
|
@ -563,7 +563,7 @@ int config_parse_macsec_port(
|
||||
_cleanup_(macsec_receive_channel_free_or_set_invalidp) ReceiveChannel *c = NULL;
|
||||
MACsec *s = userdata;
|
||||
uint16_t port;
|
||||
be16_t *dest;
|
||||
void *dest;
|
||||
int r;
|
||||
|
||||
assert(filename);
|
||||
@ -600,7 +600,7 @@ int config_parse_macsec_port(
|
||||
return 0;
|
||||
}
|
||||
|
||||
*dest = htobe16(port);
|
||||
unaligned_write_be16(dest, port);
|
||||
|
||||
TAKE_PTR(b);
|
||||
TAKE_PTR(c);
|
||||
|
Loading…
x
Reference in New Issue
Block a user