summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-11 12:08:54 -0800
committerKeith Packard <keithp@keithp.com>2013-12-11 13:11:57 -0800
commit3703b4d52d9af12d493ed358483017eff8ad838c (patch)
tree10a559d099df462999e7c357ef4854f9ddc815ed
parent658d289f643769e3398470e9b85df16c3568e6f9 (diff)
downloadxcb-util-3703b4d52d9af12d493ed358483017eff8ad838c.tar.gz
xcb_aux_parse_color should take const char *
This elimiantes warnings when passing string constants Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Julien Cristau <jcristau@debian.org>
-rw-r--r--src/xcb_aux.c2
-rw-r--r--src/xcb_aux.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/xcb_aux.c b/src/xcb_aux.c
index c810398..4efb5cb 100644
--- a/src/xcb_aux.c
+++ b/src/xcb_aux.c
@@ -302,7 +302,7 @@ xcb_aux_change_keyboard_control (xcb_connection_t *c,
in which case load the components. Otherwise, a lookup_color request
will be needed, so return false. */
int
-xcb_aux_parse_color(char *color_name,
+xcb_aux_parse_color(const char *color_name,
uint16_t *red, uint16_t *green, uint16_t *blue)
{
int n, r, g, b, i;
diff --git a/src/xcb_aux.h b/src/xcb_aux.h
index d49d438..da4fb85 100644
--- a/src/xcb_aux.h
+++ b/src/xcb_aux.h
@@ -191,7 +191,7 @@ xcb_aux_change_keyboard_control (xcb_connection_t *c,
const xcb_params_keyboard_t *params);
int
-xcb_aux_parse_color(char *color_name,
+xcb_aux_parse_color(const char *color_name,
uint16_t *red, uint16_t *green, uint16_t *blue);
xcb_void_cookie_t