updates.
[crypto.git] / lib / silcutil / silctask.c
index 5697a3ac5986e3dee45c938d796f13a49b6e848f..5a1c6a3eb699319f2b09a9c6a20db22d614bb576 100644 (file)
@@ -312,7 +312,7 @@ SilcTask silc_task_register(SilcTaskQueue queue, int fd,
 
   /* Create timeout if marked to be timeout task */
   if (((seconds + useconds) > 0) && (type == SILC_TASK_TIMEOUT)) {
-    gettimeofday(&new->timeout, NULL);
+    silc_gettimeofday(&new->timeout);
     new->timeout.tv_sec += seconds + (useconds / 1000000L);
     new->timeout.tv_usec += (useconds % 1000000L);
     if (new->timeout.tv_usec > 999999L) {