diff options
author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2016-04-18 17:05:12 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-04-20 16:09:29 +1000 |
commit | 9f0f86150e9bf14760e155768dcb7df682257327 (patch) | |
tree | b9b8d375ecee1ff20a06446875b6551561f17fb8 /ui/common | |
parent | 5c16bba845d94ef86ad6fe6fa211cbc148e77717 (diff) | |
download | petitboot-9f0f86150e9bf14760e155768dcb7df682257327.zip petitboot-9f0f86150e9bf14760e155768dcb7df682257327.tar.gz |
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 <andrew.donnellan@au1.ibm.com>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'ui/common')
-rw-r--r-- | ui/common/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |