diff options
author | okan | 2012-05-13 15:15:54 +0000 |
---|---|---|
committer | okan | 2012-05-13 15:15:54 +0000 |
commit | a7fdbbaff8e839b3c9097edf51908719e1d00ced (patch) | |
tree | 1e061e814ba96c5d5f4101b33f4cb6432ab085f3 /xutil.c | |
parent | 7c3325dfdd5af514692f91a151dbd0d3eafb2807 (diff) | |
download | cwm-a7fdbbaff8e839b3c9097edf51908719e1d00ced.tar.gz |
knf, some from a diff from Tiago Cunha.
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |