#include "config.h"
#endif
-#define _GNU_SOURCE
#include <assert.h>
#include <limits.h>
#include <unistd.h>
void ui_timer_init(struct waitset *waitset, struct ui_timer *timer,
unsigned int seconds)
{
- pb_log("%s: %u\n", __func__, seconds);
+ pb_log_fn("%u\n", seconds);
timer->timeout = seconds;
timer->waitset = waitset;
}
struct ui_timer *timer = arg;
timer->handle_timeout(timer);
- timer->waiter = 0;
+ timer->waiter = NULL;
return 0;
}