chiark / gitweb /
timesyncd: the IP_TOS sockopt is really just an optimization, we shouldn't fail if...
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Oct 2014 16:32:30 +0000 (18:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 24 Oct 2014 16:32:30 +0000 (18:32 +0200)
This partially undos 2f905e821e0342c36f5a5d3a51d53aabccc800bd

src/timesync/timesyncd-manager.c

index e5b156b..3ae01eb 100644 (file)
@@ -720,9 +720,7 @@ static int manager_listen_setup(Manager *m) {
         if (r < 0)
                 return -errno;
 
         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);
 }
 
         return sd_event_add_io(m->event, &m->event_receive, m->server_socket, EPOLLIN, manager_receive_response, m);
 }