From a7fdbbaff8e839b3c9097edf51908719e1d00ced Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 13 May 2012 15:15:54 +0000 Subject: knf, some from a diff from Tiago Cunha. --- xutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xutil.c') 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 @@ -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 -- cgit v1.2.3-2-gb3c3