summaryrefslogtreecommitdiff
path: root/csslint
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2014-08-05 08:17:17 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2014-08-05 11:57:59 +0000
commitd27114ca3442cffda04950b054d74f0f6cb19130 (patch)
treedd79c02f0df4a12c2c809d55248276f67474f78b /csslint
parenta7df9d26a96bb48ccff06f4543c134e545b90c40 (diff)
downloadlibcroco-d27114ca3442cffda04950b054d74f0f6cb19130.tar.gz
gchar/guchar types and casting
https://bugzilla.gnome.org/show_bug.cgi?id=710076
Diffstat (limited to 'csslint')
-rw-r--r--csslint/csslint.c18
1 files changed, 9 insertions, 9 deletions
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 ;