From 13112984fd32d4684959a923497a9a476981283e Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 8 Aug 2010 17:37:46 +0000 Subject: * hyper/ex2ht.c (strPrefix): Be const-correct. * hyper/htinp.c (get_graph_output): Likewise. (print_paste): Likewise. (print_graph_paste): Likewise. * hyper/initx.c (get_color): Likewise. * hyper/keyin.c (handle_key): Likewise. * hyper/lex.c (token_table): Likewise. * hyper/macro.c (number): Likewise. * hyper/mem.c (alloc_page): Likewise. * hyper/parse-aux.c (make_special_page): Likewise. (is_number): Likewise. * hyper/parse-types.c (errmess): Likewise. * lib/sockio-c.c (oa_socket_read): Cast to second argument to appropriate type. (oa_socket_read_byte): Likewise. --- src/hyper/initx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hyper/initx.c') diff --git a/src/hyper/initx.c b/src/hyper/initx.c index 45a9ff4d..c4d212dd 100644 --- a/src/hyper/initx.c +++ b/src/hyper/initx.c @@ -75,7 +75,7 @@ extern int gethostname(char *, int ); static void get_GCs(HDWindow * window); static int get_border_properties(void); -static int get_color(char * , char * , int, Colormap*); +static int get_color(const char* , const char* , int, Colormap*); static void ingItColors_and_fonts(void); static void load_font(XFontStruct * * font_info , char * fontname); static void mergeDatabases(void); @@ -897,7 +897,7 @@ change_text(int color, XFontStruct *font) */ static int -get_color(char *name, char *klass, int def, Colormap *map) +get_color(const char *name, const char *klass, int def, Colormap *map) { char fullname[256]; char fullclass[256]; -- cgit v1.2.3