diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-10-24 18:32:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-24 18:32:30 +0200 |
commit | 69f0081748fb4be1b7b772815e5c4202cdb88d3d (patch) | |
tree | 8230d26e8ac33b8f2e77c408fa004eaeff59471b /src/timesync/timesyncd-manager.c | |
parent | 06cbf7f24e5053e70c74731a12c2368b5704a4a4 (diff) |
timesyncd: the IP_TOS sockopt is really just an optimization, we shouldn't fail if we can't set it
This partially undos 2f905e821e0342c36f5a5d3a51d53aabccc800bd
Diffstat (limited to 'src/timesync/timesyncd-manager.c')
-rw-r--r-- | src/timesync/timesyncd-manager.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c index e5b156b7dd..3ae01eb8fc 100644 --- a/src/timesync/timesyncd-manager.c +++ b/src/timesync/timesyncd-manager.c @@ -720,9 +720,7 @@ static int manager_listen_setup(Manager *m) { if (r < 0) return -errno; - r = setsockopt(m->server_socket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)); - if (r < 0) - return -errno; + (void) setsockopt(m->server_socket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)); return sd_event_add_io(m->event, &m->event_receive, m->server_socket, EPOLLIN, manager_receive_response, m); } |