From 3703b4d52d9af12d493ed358483017eff8ad838c Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 11 Dec 2013 12:08:54 -0800 Subject: xcb_aux_parse_color should take const char * This elimiantes warnings when passing string constants Signed-off-by: Keith Packard Reviewed-by: Julien Cristau --- src/xcb_aux.c | 2 +- src/xcb_aux.h | 2 +- 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 -- cgit v1.2.3