From: <svn...@op...> - 2009-07-08 09:05:31
|
Author: dgollub Date: Wed Jul 8 11:05:24 2009 New Revision: 5694 URL: http://www.opensync.org/changeset/5694 Log: Silence compiler warning about signdess issue. xmlChar* uses unsigned char * (IIRC). To fit the OpenSync API pattern we use for most characters const char*. If there is a cleaner way to fit the needs of API, let me know. Modified: branches/opensync-ticket1084/opensync/capabilities/opensync_capabilities_objtype.c Modified: branches/opensync-ticket1084/opensync/capabilities/opensync_capabilities_objtype.c ============================================================================== --- branches/opensync-ticket1084/opensync/capabilities/opensync_capabilities_objtype.c Wed Jul 8 11:02:29 2009 (r5693) +++ branches/opensync-ticket1084/opensync/capabilities/opensync_capabilities_objtype.c Wed Jul 8 11:05:24 2009 (r5694) @@ -62,7 +62,8 @@ osync_assert(!xmlStrcmp(node->name, (const xmlChar *)"ObjType")); objtype = xmlGetProp(node, (const xmlChar *)"Name"); - if (!(capobjtype = osync_capabilities_objtype_new(capabilities, BAD_CAST objtype, error))) + /* XXX: Bad cast from unsigned char* to const char* - is there a better way? */ + if (!(capobjtype = osync_capabilities_objtype_new(capabilities, (const char *) objtype, error))) goto error; osync_xml_free(objtype); |