just a bit of typecasting

This commit is contained in:
Enno Rehling 2011-03-12 17:00:16 -08:00
parent 5afb83c193
commit 31edf06d05

View file

@ -192,7 +192,7 @@ xml_readconstruction(xmlXPathContextPtr xpath, xmlNodeSetPtr nodeSet,
assert(*consPtr == NULL); assert(*consPtr == NULL);
*consPtr = con = calloc(sizeof(construction), 1); *consPtr = con = (construction *)calloc(sizeof(construction), 1);
consPtr = &con->improvement; consPtr = &con->improvement;
con->skill = sk; con->skill = sk;
@ -349,7 +349,7 @@ static int parse_buildings(xmlDocPtr doc)
maintenance *mt; maintenance *mt;
if (btype->maintenance == NULL) { if (btype->maintenance == NULL) {
btype->maintenance = btype->maintenance = (struct maintenance *)
calloc(sizeof(struct maintenance), result->nodesetval->nodeNr + 1); calloc(sizeof(struct maintenance), result->nodesetval->nodeNr + 1);
} }
mt = btype->maintenance + k; mt = btype->maintenance + k;