updates.
[silc.git] / lib / silcutil / silcschedule.c
index 5a673d041a0d40bcffe729456d2a95e501c576e1..b7e99ed406dd8fa081e62668e33b5cac4d7c2037 100644 (file)
@@ -390,7 +390,7 @@ do {                                                                            \
     task = NULL;                                                           \
                                                                            \
     /* Get the current time */                                             \
-    gettimeofday(&curtime, NULL);                                          \
+    silc_gettimeofday(&curtime);                                           \
     schedule->timeout = NULL;                                              \
                                                                            \
     /* First task in the task queue has always the smallest timeout. */            \
@@ -572,7 +572,7 @@ bool silc_schedule_one(SilcSchedule schedule, int timeout_usecs)
   case 0:
     /* Timeout */
     SILC_LOG_DEBUG(("Running timeout tasks"));
-    gettimeofday(&curtime, NULL);
+    silc_gettimeofday(&curtime);
     SILC_SCHEDULE_RUN_TIMEOUT_TASKS;
     break;
   default: