summaryrefslogtreecommitdiffstats
path: root/ui/twin
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2016-04-18 17:05:12 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-04-20 16:09:29 +1000
commit9f0f86150e9bf14760e155768dcb7df682257327 (patch)
treeb9b8d375ecee1ff20a06446875b6551561f17fb8 /ui/twin
parent5c16bba845d94ef86ad6fe6fa211cbc148e77717 (diff)
downloadtalos-petitboot-9f0f86150e9bf14760e155768dcb7df682257327.tar.gz
talos-petitboot-9f0f86150e9bf14760e155768dcb7df682257327.zip
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/twin')
-rw-r--r--ui/twin/pbt-scr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/twin/pbt-scr.c b/ui/twin/pbt-scr.c
index b774f19..e10cab1 100644
--- a/ui/twin/pbt-scr.c
+++ b/ui/twin/pbt-scr.c
@@ -402,8 +402,8 @@ struct pbt_scr *pbt_scr_init(void *talloc_ctx,
#if !defined(HAVE_LIBTWIN_TWIN_X11_H)
assert(0);
#else
- scr->twin_ctx.x11 = twin_x11_create_ext(XOpenDisplay(0), width,
- height, 0);
+ scr->twin_ctx.x11 = twin_x11_create_ext(XOpenDisplay(NULL),
+ width, height, 0);
if (!scr->twin_ctx.x11) {
pb_log("%s: twin_x11_create_ext failed.\n", __func__);
OpenPOWER on IntegriCloud