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:
parent
c696878ac0
commit
853efc39ea
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user