about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/nsssd/nsssd_main.c2
-rw-r--r--src/tests/test-switch.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/nsssd/nsssd_main.c b/src/nsssd/nsssd_main.c
index ec964e9..133a813 100644
--- a/src/nsssd/nsssd_main.c
+++ b/src/nsssd/nsssd_main.c
@@ -403,7 +403,7 @@ int nsssd_main (char const *const *argv, char const *const *envp)
     if (setuid(uid) == -1) strerr_diefu2sys(111, "setuid to ", x) ;
   }
 
-  tain_now_set_stopwatch() ;                                            
+  tain_now_set_stopwatch_g() ;                                            
   a = nsssd_handle_init() ;
   if (ndelay_on(0) < 0) strerr_diefu1sys(111, "set stdin non-blocking") ;
   tain_now_g() ;
diff --git a/src/tests/test-switch.c b/src/tests/test-switch.c
index 51d76ad..937ec03 100644
--- a/src/tests/test-switch.c
+++ b/src/tests/test-switch.c
@@ -20,8 +20,7 @@ int main (void)
   genalloc ga = GENALLOC_ZERO ;
   tain_t deadline ;
   PROG = "test-switch" ;
-  tain_now_set_stopwatch() ;
-  tain_now_g() ;
+  tain_now_set_stopwatch_g() ;
   tain_from_millisecs(&deadline, 10000) ;
   tain_add_g(&deadline, &deadline) ;