--- libcroco-0.6.8/csslint/csslint.c.orig	2009-05-07 10:16:28.000000000 +0000
+++ libcroco-0.6.8/csslint/csslint.c	2013-10-14 05:20:14.578690100 +0000
@@ -331,21 +331,21 @@
         }
         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");
                 }
@@ -367,7 +367,7 @@
                         ("Error: Could not instanciate the xpath context\n");
                 return CR_ERROR;
         }
-        xpath_object = xmlXPathEvalExpression (a_xpath, xpath_context);
+        xpath_object = xmlXPathEvalExpression ((const xmlChar *) a_xpath, xpath_context);
         if (!xpath_object) {
                 g_printerr ("Error: Could not evaluate xpath expression\n");
                 return CR_ERROR;
@@ -401,7 +401,7 @@
         if (cascade) {
                 cr_cascade_destroy (cascade);
         }
-        return CR_OK;
+        return status;
 }
 
 /***************************
@@ -736,7 +736,7 @@
         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 @@
         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 @@
                 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 @@
         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,17 +970,17 @@
                                  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 ;
                 }
         }
 
-        return 0;
+        return (status == CR_OK ? 0 : -1);
 }
