1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

timesyncd: make a constant structure actually static/const

This commit is contained in:
Lennart Poettering 2022-03-18 14:06:47 +01:00
parent c696878ac0
commit 853efc39ea

View File

@ -819,7 +819,7 @@ int manager_connect(Manager *m) {
if (m->current_server_address && m->current_server_address->addresses_next)
manager_set_server_address(m, m->current_server_address->addresses_next);
else {
struct addrinfo hints = {
static const struct addrinfo hints = {
.ai_flags = AI_NUMERICSERV|AI_ADDRCONFIG,
.ai_socktype = SOCK_DGRAM,
};