diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-11-10 21:49:47 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-11-10 21:49:47 +0100 |
commit | 04a926ec1e79eba4bda31e19ef58aed79e10ff46 (patch) | |
tree | 042068d5908316b18713f746007d94525c5710bc /src/yawa.c | |
parent | 502734b615b728d1e01c028df5dc92827850068e (diff) | |
download | yawa-04a926ec1e79eba4bda31e19ef58aed79e10ff46.tar.xz |
parse_color: Use bool return-type, nuke PColor for Color*
Diffstat (limited to 'src/yawa.c')
-rw-r--r-- | src/yawa.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |