From d27114ca3442cffda04950b054d74f0f6cb19130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Tue, 5 Aug 2014 08:17:17 +0000 Subject: gchar/guchar types and casting https://bugzilla.gnome.org/show_bug.cgi?id=710076 --- csslint/csslint.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'csslint') diff --git a/csslint/csslint.c b/csslint/csslint.c index 90bc30d..d21c76b 100644 --- a/csslint/csslint.c +++ b/csslint/csslint.c @@ -331,21 +331,21 @@ evaluate_selectors (gchar * a_xml_path, } if (a_author_sheet_path) { status = cr_om_parser_simply_parse_file - (a_author_sheet_path, CR_ASCII, &author_sheet); + ((const guchar *) a_author_sheet_path, CR_ASCII, &author_sheet); if (!author_sheet) { g_printerr ("Error: Could not parse author sheet\n"); } } if (a_user_sheet_path) { status = cr_om_parser_simply_parse_file - (a_user_sheet_path, CR_ASCII, &user_sheet); + ((const guchar *) a_user_sheet_path, CR_ASCII, &user_sheet); if (!user_sheet) { g_printerr ("Error: Could not parse author sheet\n"); } } if (a_ua_sheet_path) { status = cr_om_parser_simply_parse_file - (a_ua_sheet_path, CR_ASCII, &ua_sheet); + ((const guchar *) a_ua_sheet_path, CR_ASCII, &ua_sheet); if (!ua_sheet) { g_printerr ("Error: Could not parse ua sheet\n"); } @@ -736,7 +736,7 @@ dump_location_annotated_simple_sel (CRSimpleSel *a_this) g_return_if_fail (a_this) ; /*first, display the entire simple sel*/ - str0 = cr_simple_sel_one_to_string + str0 = (gchar *) cr_simple_sel_one_to_string (cur_simple_sel) ; if (str0) { g_print ("/*%s*/\n", str0) ; @@ -769,7 +769,7 @@ dump_location_annotated_simple_sel (CRSimpleSel *a_this) for (cur_add_sel = cur_simple_sel->add_sel; cur_add_sel; cur_add_sel = cur_add_sel->next) { - str0 = cr_additional_sel_one_to_string + str0 = (gchar *) cr_additional_sel_one_to_string (cur_add_sel) ; if (str0) { g_print ("\n /*%s*/\n", str0) ; @@ -848,7 +848,7 @@ property (CRDocHandler *a_this, g_print ("%s", str) ; str = NULL ; if (a_expr) { - str = cr_term_to_string (a_expr) ; + str = (gchar *) cr_term_to_string (a_expr) ; if (str) { g_print (" : %s;\n\n", str) ; g_free (str) ; @@ -881,7 +881,7 @@ property (CRDocHandler *a_this, for (cur_term = a_expr ; cur_term; cur_term = cur_term->next) { - str = cr_term_one_to_string (cur_term) ; + str = (gchar *) cr_term_one_to_string (cur_term) ; if (str) { g_print (" /*%s*/\n", str) ; g_free (str) ; @@ -970,12 +970,12 @@ main (int argc, char **argv) options.user_sheet_path, options.ua_sheet_path, options.xpath); } else if (options.css_files_list != NULL) { - status = cssom_parse (options.css_files_list[0]); + status = cssom_parse ((guchar *) options.css_files_list[0]); } } else if (options.dump_location == TRUE) { if (options.css_files_list) { status = sac_parse_and_display_locations - (options.css_files_list[0]) ; + ((guchar *) options.css_files_list[0]) ; } else { display_usage () ; return -1 ; -- cgit v1.2.1