diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-09-06 10:35:06 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-09-06 10:35:06 +0000 |
commit | 78e02bc18245c6baf2764c02c52035404eda7e6d (patch) | |
tree | b55e401cc44cfc272c606dd56ce506d8e89b8f10 | |
parent | 78e13b1041f9dfab3077c5e713d570089459094e (diff) | |
download | utmps-78e02bc18245c6baf2764c02c52035404eda7e6d.tar.xz |
Adapt to new stopwatch API
-rw-r--r-- | src/utmps/utmps-utmpd.c | 3 | ||||
-rw-r--r-- | src/utmps/utmps-wtmpd.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/utmps/utmps-utmpd.c b/src/utmps/utmps-utmpd.c index 7e2c3af..9709af5 100644 --- a/src/utmps/utmps-utmpd.c +++ b/src/utmps/utmps-utmpd.c @@ -236,8 +236,7 @@ int main (void) if (!x) strerr_diefu1x(100, "get $IPCREMOTEEGID from environment") ; if (!gid0_scan(x, &gid)) strerr_dieinvalid(100, "IPCREMOTEEGID") ; if (ndelay_on(0) < 0) strerr_diefu1sys(111, "set stdin non-blocking") ; - tain_now_set_stopwatch() ; - tain_now_g() ; + tain_now_set_stopwatch_g() ; for (;;) { diff --git a/src/utmps/utmps-wtmpd.c b/src/utmps/utmps-wtmpd.c index c5454a0..989e761 100644 --- a/src/utmps/utmps-wtmpd.c +++ b/src/utmps/utmps-wtmpd.c @@ -39,8 +39,7 @@ int main (void) if (!x) strerr_diefu1x(100, "get $IPCREMOTEEUID from environment") ; if (!uid0_scan(x, &uid)) strerr_dieinvalid(100, "IPCREMOTEEUID") ; if (ndelay_on(0) < 0) strerr_diefu1sys(111, "set stdin non-blocking") ; - tain_now_set_stopwatch() ; - tain_now_g() ; + tain_now_set_stopwatch_g() ; tain_ulong(&deadline, 30) ; tain_add_g(&deadline, &deadline) ; |