Commit 86e61e9e authored by Carl Worth's avatar Carl Worth Committed by Carl Worth

Add some more casts to let gcc4 compile once again without errors.


2005-10-08  Carl Worth  <cworth@cworth.org>

        * rsvg-base.c: (rsvg_entity_decl): Add some more casts to let gcc4
        compile once again without errors.
parent eedf6dab
2005-10-08 Carl Worth <cworth@cworth.org>
* rsvg-base.c: (rsvg_entity_decl): Add some more casts to let gcc4
compile once again without errors.
2005-10-08 Dom Lachowicz <cinamod@hotmail.com>
* rsvg-cond.c: Fix up <switch> conditional comparisons
......
......@@ -714,18 +714,18 @@ rsvg_entity_decl (void *data, const xmlChar *name, int type,
RsvgHandle *ctx = (RsvgHandle *)data;
GHashTable *entities = ctx->entities;
xmlEntityPtr entity;
char *dupname;
xmlChar *dupname;
entity = g_new0 (xmlEntity, 1);
entity->type = XML_ENTITY_DECL;
dupname = g_strdup ((char *)name);
dupname = (xmlChar *) g_strdup ((char *)name);
entity->name = dupname;
entity->ExternalID = g_strdup (publicId);
entity->SystemID = g_strdup (systemId);
entity->ExternalID = (xmlChar *) g_strdup ((char *)publicId);
entity->SystemID = (xmlChar *) g_strdup ((char *)systemId);
entity->etype = type;
if (content)
{
entity->content = xmlMemStrdup ((char *)content);
entity->content = (xmlChar *) xmlMemStrdup ((char *)content);
entity->length = strlen ((char *)content);
}
g_hash_table_insert (entities, dupname, entity);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment