From 9f0f86150e9bf14760e155768dcb7df682257327 Mon Sep 17 00:00:00 2001 From: Andrew Donnellan Date: Mon, 18 Apr 2016 17:05:12 +1000 Subject: Fix sparse warnings Fix some sparse warnings by using NULL instead of 0 and static-ifying a variable not used outside its file. Signed-off-by: Andrew Donnellan Signed-off-by: Samuel Mendoza-Jonas --- ui/common/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/common') diff --git a/ui/common/timer.c b/ui/common/timer.c index 3d80898..b0cae0d 100644 --- a/ui/common/timer.c +++ b/ui/common/timer.c @@ -49,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; } -- cgit v1.2.1