aboutsummaryrefslogtreecommitdiffstats
path: root/xutil.c
diff options
context:
space:
mode:
authorokan2012-05-13 15:15:54 +0000
committerokan2012-05-13 15:15:54 +0000
commita7fdbbaff8e839b3c9097edf51908719e1d00ced (patch)
tree1e061e814ba96c5d5f4101b33f4cb6432ab085f3 /xutil.c
parent7c3325dfdd5af514692f91a151dbd0d3eafb2807 (diff)
downloadcwm-a7fdbbaff8e839b3c9097edf51908719e1d00ced.tar.gz
knf, some from a diff from Tiago Cunha.
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xutil.c b/xutil.c
index 859cf51..8b0704c 100644
--- a/xutil.c
+++ b/xutil.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xutil.c,v 1.37 2011/07/25 15:10:24 okan Exp $
+ * $OpenBSD: xutil.c,v 1.38 2012/05/13 15:15:54 okan Exp $
*/
#include <sys/param.h>
@@ -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