knf, some from a diff from Tiago Cunha.

This commit is contained in:
okan
2012-05-13 15:15:54 +00:00
parent 63b59e44c1
commit fb4936d0f7
4 changed files with 14 additions and 10 deletions

View File

@@ -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