[Xcb-commit] xcb/util: src

Keith Packard keithp at kemper.freedesktop.org
Wed Dec 11 13:12:14 PST 2013


 src/xcb_aux.c |    2 +-
 src/xcb_aux.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3703b4d52d9af12d493ed358483017eff8ad838c
Author: Keith Packard <keithp at keithp.com>
Date:   Wed Dec 11 12:08:54 2013 -0800

    xcb_aux_parse_color should take const char *
    
    This elimiantes warnings when passing string constants
    
    Signed-off-by: Keith Packard <keithp at keithp.com>
    Reviewed-by: Julien Cristau <jcristau at debian.org>

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


More information about the xcb-commit mailing list