From 41f66e55bcf22c63a6c94f547eba22b246762f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Fri, 15 Jun 2018 10:06:51 +0000 Subject: [PATCH] Use mud_sync() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- mud | 2 +- src/bind.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mud b/mud index 03be90b..22e065e 160000 --- a/mud +++ b/mud @@ -1 +1 @@ -Subproject commit 03be90b6067937e3ab88e2aea96ca0dd1e910d16 +Subproject commit 22e065e5cb972535ebd3f31f058d8a53c325b843 diff --git a/src/bind.c b/src/bind.c index 2736591..a850820 100644 --- a/src/bind.c +++ b/src/bind.c @@ -300,8 +300,7 @@ gt_bind(int argc, char **argv) res.status.peer = peer_addr; break; case CTL_SYNC: - mud_send(mud, NULL, 0, 0); - res.ms = mud_get_sync_elapsed_msec(mud); + res.ms = mud_sync(mud); break; } if (sendto(ctl_fd, &res, sizeof(res), 0, @@ -341,7 +340,7 @@ gt_bind(int argc, char **argv) } if (!ret) - mud_send(mud, NULL, 0, 0); + mud_sync(mud); } if (gt_reload && tun_fd >= 0) {