From 04a926ec1e79eba4bda31e19ef58aed79e10ff46 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 10 Nov 2014 21:49:47 +0100 Subject: parse_color: Use bool return-type, nuke PColor for Color* --- src/yawa.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/yawa.c') diff --git a/src/yawa.c b/src/yawa.c index 4b71d1b..1a669a5 100644 --- a/src/yawa.c +++ b/src/yawa.c @@ -183,11 +183,11 @@ set_root_atoms (Pixmap pixmap) return 1; } -int -parse_color (char *hex, PColor c, int a) +bool +parse_color (char *hex, Color *c, int a) { if ((strlen(hex) != 7) && (strlen(hex) != 9)) - return 0; + return false; int len; if (strlen(hex) == 9) { @@ -226,7 +226,7 @@ parse_color (char *hex, PColor c, int a) c->a = a; } - return 1; + return true; } int -- cgit v1.2.3-54-g00ecf