Constify arg to geom_lookupid().
Improve a diagnostic printf.
This commit is contained in:
parent
82e3b82014
commit
2ad2651a98
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112340
@ -217,7 +217,7 @@ EndElement(void *userData, const char *name)
|
||||
}
|
||||
|
||||
if (p != NULL) {
|
||||
printf("<<<%s>>>\n", p);
|
||||
printf("Unexpected XML: name=%s data=\"%s\"\n", name, p);
|
||||
free(p);
|
||||
}
|
||||
|
||||
@ -267,7 +267,7 @@ CharData(void *userData , const XML_Char *s , int len)
|
||||
}
|
||||
|
||||
struct gident *
|
||||
geom_lookupid(struct gmesh *gmp, void *id)
|
||||
geom_lookupid(struct gmesh *gmp, const void *id)
|
||||
{
|
||||
struct gident *gip;
|
||||
|
||||
|
@ -121,7 +121,7 @@ struct gprovider {
|
||||
struct gconf config;
|
||||
};
|
||||
|
||||
struct gident * geom_lookupid(struct gmesh *gmp, void *id);
|
||||
struct gident * geom_lookupid(struct gmesh *gmp, const void *id);
|
||||
int geom_xml2tree(struct gmesh *gmp, char *p);
|
||||
int geom_gettree(struct gmesh *gmp);
|
||||
void geom_deletetree(struct gmesh *gmp);
|
||||
|
Loading…
Reference in New Issue
Block a user