X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fcommon%2Ftimer.c;h=b0cae0dfd0e8c93b4b00f049918d372d216dc67a;hp=3c1e8331233b45e8016dd9faa2b8d8a0aaa976f1;hb=ccb478ac2e5b1e24ebb6af4130fdd37e1b36babb;hpb=293fca73b2fe077e7780c1a42216a3db41a6e737 diff --git a/ui/common/timer.c b/ui/common/timer.c index 3c1e833..b0cae0d 100644 --- a/ui/common/timer.c +++ b/ui/common/timer.c @@ -20,7 +20,6 @@ #include "config.h" #endif -#define _GNU_SOURCE #include #include #include @@ -50,7 +49,7 @@ static int timer_cb(void *arg) struct ui_timer *timer = arg; timer->handle_timeout(timer); - timer->waiter = 0; + timer->waiter = NULL; return 0; }