summaryrefslogtreecommitdiff
path: root/src/libs6
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-09-06 13:03:11 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-09-06 13:03:11 +0000
commit296cdd194fb36e4b080690f5f24228925722bf57 (patch)
tree497124e5faea03f6583aa1a2deb5e8953cf68aa8 /src/libs6
parent2f8e7b245b7fe187c41ea3655fce7551cfd7a48c (diff)
downloads6-296cdd194fb36e4b080690f5f24228925722bf57.tar.xz
Adapt to new stopwatch API
Diffstat (limited to 'src/libs6')
-rw-r--r--src/libs6/s6-ftrigrd.c3
-rw-r--r--src/libs6/s6lockd.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/libs6/s6-ftrigrd.c b/src/libs6/s6-ftrigrd.c
index ce9d03a..0ecf398 100644
--- a/src/libs6/s6-ftrigrd.c
+++ b/src/libs6/s6-ftrigrd.c
@@ -201,8 +201,7 @@ int main (void)
{
tain_t deadline ;
- tain_now_set_stopwatch() ;
- tain_now_g() ;
+ tain_now_set_stopwatch_g() ;
tain_addsec_g(&deadline, 2) ;
if (!textclient_server_01x_init_g(FTRIGR_BANNER1, FTRIGR_BANNER1_LEN, FTRIGR_BANNER2, FTRIGR_BANNER2_LEN, &deadline))
strerr_diefu1sys(111, "sync with client") ;
diff --git a/src/libs6/s6lockd.c b/src/libs6/s6lockd.c
index d2f76d5..afa8b3e 100644
--- a/src/libs6/s6lockd.c
+++ b/src/libs6/s6lockd.c
@@ -204,8 +204,7 @@ int main (int argc, char const *const *argv)
strerr_diefu1sys(111, "trap signals") ;
}
- tain_now_set_stopwatch() ;
- tain_now_g() ;
+ tain_now_set_stopwatch_g() ;
tain_addsec_g(&deadline, 2) ;
if (!textclient_server_01x_init_g(S6LOCK_BANNER1, S6LOCK_BANNER1_LEN, S6LOCK_BANNER2, S6LOCK_BANNER2_LEN, &deadline))