[hackers] [dwm] some NULL fixes || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Sat, 21 Feb 2009 19:20:16 +0000 (UTC)

changeset: 1389:b4e7c220422d
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Sat Feb 21 19:20:11 2009 +0000
files: dwm.c
description:
some NULL fixes

diff -r e2c23f3b3733 -r b4e7c220422d dwm.c
--- a/dwm.c Sat Feb 21 19:15:30 2009 +0000
+++ b/dwm.c Sat Feb 21 19:20:11 2009 +0000
@@ -1294,7 +1294,7 @@
         dc.sel[ColBG] = getcolor(selbgcolor);
         dc.sel[ColFG] = getcolor(selfgcolor);
         dc.drawable = XCreatePixmap(dpy, root, DisplayWidth(dpy, screen), bh, DefaultDepth(dpy, screen));
- dc.gc = XCreateGC(dpy, root, 0, 0);
+ dc.gc = XCreateGC(dpy, root, 0, NULL);
         XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
         if(!dc.font.set)
                 XSetFont(dpy, dc.gc, dc.font.xfont->fid);
@@ -1697,7 +1697,7 @@
         if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
                 fputs("warning: no locale support\n", stderr);
 
- if(!(dpy = XOpenDisplay(0)))
+ if(!(dpy = XOpenDisplay(NULL)))
                 die("dwm: cannot open display\n");
 
         checkotherwm();
Received on Sat Feb 21 2009 - 19:20:16 UTC

This archive was generated by hypermail 2.2.0 : Sat Feb 21 2009 - 19:24:05 UTC