/* SilcTimer tests */
-#include "silc.h"
+#include "silcruntime.h"
SilcSchedule schedule;
SilcTimerStruct timer;
silc_timer_start_time(&timer, &st);
silc_timer_value_time(&timer, &t);
silc_time_universal_string(&st, ts, sizeof(ts));
- SILC_LOG_DEBUG(("Start time: %s", ts));
+ SILC_LOG_DEBUG(("Start time: %s", ts));
silc_time_universal_string(&t, ts, sizeof(ts));
- SILC_LOG_DEBUG(("End time: %s", ts));
+ SILC_LOG_DEBUG(("End time: %s", ts));
success = TRUE;
silc_schedule_stop(schedule);
silc_log_set_debug_string("*timer*,*errno*");
}
- schedule = silc_schedule_init(0, NULL, NULL);
+ schedule = silc_schedule_init(0, NULL, NULL, NULL);
if (!schedule)
goto err;
SILC_LOG_DEBUG(("Testing was %s", success ? "SUCCESS" : "FAILURE"));
fprintf(stderr, "Testing was %s\n", success ? "SUCCESS" : "FAILURE");
- return success;
+ return !success;
}