forked from github/server
just a bit of typecasting
This commit is contained in:
parent
5afb83c193
commit
31edf06d05
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue