summaryrefslogtreecommitdiffstats
path: root/src/timesync/timesyncd-manager.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-18 22:39:55 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-10-18 22:52:42 +0200
commit9e5b649655a11b928c23324bdc1b21cd5ae4a4fb (patch)
tree1aa6bbb09b1c3042e90bddeedcc7c75f4a71460d /src/timesync/timesyncd-manager.c
parentMerge pull request #10456 from poettering/setsockopt-int (diff)
downloadsystemd-9e5b649655a11b928c23324bdc1b21cd5ae4a4fb.tar.xz
systemd-9e5b649655a11b928c23324bdc1b21cd5ae4a4fb.zip
tree-wide: use setsockopt_int() more
Diffstat (limited to 'src/timesync/timesyncd-manager.c')
-rw-r--r--src/timesync/timesyncd-manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c
index 1d59b42495..4b45650e9b 100644
--- a/src/timesync/timesyncd-manager.c
+++ b/src/timesync/timesyncd-manager.c
@@ -629,7 +629,6 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re
static int manager_listen_setup(Manager *m) {
union sockaddr_union addr = {};
- static const int tos = IPTOS_LOWDELAY;
int r;
assert(m);
@@ -654,7 +653,7 @@ static int manager_listen_setup(Manager *m) {
if (r < 0)
return r;
- (void) setsockopt(m->server_socket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos));
+ (void) setsockopt_int(m->server_socket, IPPROTO_IP, IP_TOS, IPTOS_LOWDELAY);
return sd_event_add_io(m->event, &m->event_receive, m->server_socket, EPOLLIN, manager_receive_response, m);
}