From: <svn...@op...> - 2005-03-22 17:39:41
|
Author: drzeus Date: 2005-03-22 18:40:29 +0100 (Tue, 22 Mar 2005) New Revision: 402 Modified: trunk/tests/mock-plugin/mock_sync.c Log: gcc4 fix Modified: trunk/tests/mock-plugin/mock_sync.c =================================================================== --- trunk/tests/mock-plugin/mock_sync.c 2005-03-22 17:36:45 UTC (rev 401) +++ trunk/tests/mock-plugin/mock_sync.c 2005-03-22 17:40:29 UTC (rev 402) @@ -47,7 +47,7 @@ return FALSE; } - if (xmlStrcmp(cur->name, "config")) { + if (xmlStrcmp(cur->name, (xmlChar*)"config")) { xmlFreeDoc(doc); osync_error_set(error, OSYNC_ERROR_GENERIC, "Config valid is not valid"); osync_trace(TRACE_EXIT_ERROR, "%s: %s", __func__, osync_error_print(error)); @@ -57,7 +57,7 @@ cur = cur->xmlChildrenNode; while (cur != NULL) { - char *str = xmlNodeGetContent(cur); + char *str = (char*)xmlNodeGetContent(cur); if (str) { if (!xmlStrcmp(cur->name, (const xmlChar *)"path")) { env->path = g_strdup(str); |