summary refs log tree commit diff
path: root/xutil.c
diff options
context:
space:
mode:
authorokan <okan>2012-05-13 15:15:54 +0000
committerokan <okan>2012-05-13 15:15:54 +0000
commitfb4936d0f7ea06554a2b11aaa2272f7ca1dd4a98 (patch)
tree11efe2189ad525f07a7a21eba71a29c3536dc22f /xutil.c
parent63b59e44c14fd8d7cce4abba064fa71a9fb6ac65 (diff)
downloadcwm-fb4936d0f7ea06554a2b11aaa2272f7ca1dd4a98.tar.gz
cwm-fb4936d0f7ea06554a2b11aaa2272f7ca1dd4a98.tar.xz
cwm-fb4936d0f7ea06554a2b11aaa2272f7ca1dd4a98.zip
knf, some from a diff from Tiago Cunha.
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xutil.c b/xutil.c
index 84ef1d8..67cc856 100644
--- a/xutil.c
+++ b/xutil.c
@@ -292,10 +292,10 @@ xu_getcolor(struct screen_ctx *sc, char *name)
 	if (!XAllocNamedColor(X_Dpy, DefaultColormap(X_Dpy, sc->which),
 	    name, &color, &tmp)) {
 		warnx("XAllocNamedColor error: '%s'", name);
-		return 0;
+		return (0);
 	}
 
-	return color.pixel;
+	return (color.pixel);
 }
 
 void