diff options
Diffstat (limited to 'tests/test2-main.c')
-rw-r--r-- | tests/test2-main.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/test2-main.c b/tests/test2-main.c index be1d545..7d94a80 100644 --- a/tests/test2-main.c +++ b/tests/test2-main.c @@ -124,7 +124,7 @@ test_import_style (CRDocHandler * a_handler, for (cur = a_media_list; cur; cur = cur->next) { if (cur->data) { - guchar *str = + gchar *str = g_strndup (((CRString *) cur->data)->stryng->str, ((CRString *) cur->data)->stryng->len); @@ -141,7 +141,7 @@ test_import_style (CRDocHandler * a_handler, fprintf (stdout, "--------------------\n"); if (a_uri_default_ns) { - guchar *str = cr_string_dup2 + guchar *str = (guchar *) cr_string_dup2 (a_uri_default_ns) ; if (str) { fprintf (stdout, "%s\n", str); @@ -166,7 +166,7 @@ test_namespace_declaration (CRDocHandler * a_handler, fprintf (stdout, "namespace_declaration:\n"); if (a_prefix) { - guchar *prefix = NULL; + gchar *prefix = NULL; prefix = cr_string_dup2 (a_prefix) ; if (prefix) { @@ -176,7 +176,7 @@ test_namespace_declaration (CRDocHandler * a_handler, } } if (a_uri) { - guchar *uri = NULL; + gchar *uri = NULL; uri = cr_string_dup2 (a_uri) ; if (uri) { @@ -200,7 +200,7 @@ test_comment (CRDocHandler * a_handler, fprintf (stdout, "***************\n"); fprintf (stdout, "comment:\n"); if (a_comment) { - guchar *comment = NULL; + gchar *comment = NULL; comment = cr_string_dup2 (a_comment); @@ -263,7 +263,7 @@ test_property (CRDocHandler * a_handler, if (a_name && a_name->stryng && a_name->stryng->str) { - guchar *name = g_strndup + gchar *name = g_strndup (a_name->stryng->str, a_name->stryng->len); @@ -317,7 +317,7 @@ test_start_media (CRDocHandler * a_handler, if (a_media_list) { GList *cur = NULL; - guchar *medium = NULL; + gchar *medium = NULL; for (cur = a_media_list; cur; cur = cur->next) { if (cur->data == NULL) @@ -347,7 +347,7 @@ test_end_media (CRDocHandler * a_handler, if (a_media_list) { GList *cur = NULL; - guchar *medium = NULL; + gchar *medium = NULL; for (cur = a_media_list; cur; cur = cur->next) { if (cur->data == NULL) @@ -374,7 +374,7 @@ test_start_page (CRDocHandler * a_handler, CRString * a_pseudo_page, CRParsingLocation *a_location) { - guchar *name = NULL, + gchar *name = NULL, *pseudo_page = NULL; g_return_if_fail (a_handler); @@ -410,7 +410,7 @@ test_end_page (CRDocHandler * a_handler, CRString * a_name, CRString * a_pseudo_page) { - guchar *name = NULL, + gchar *name = NULL, *pseudo_page = NULL; g_return_if_fail (a_handler); @@ -446,7 +446,7 @@ static void test_ignorable_at_rule (CRDocHandler * a_handler, CRString * a_name) { - guchar *name = NULL; + gchar *name = NULL; g_return_if_fail (a_handler); @@ -551,7 +551,7 @@ main (int argc, char **argv) return 0; } - status = test_cr_parser_parse (options.files_list[0]); + status = test_cr_parser_parse ((guchar *) options.files_list[0]); if (status != CR_OK) { fprintf (stdout, "KO\n"); |