aboutsummaryrefslogtreecommitdiff
path: root/lib/libgeom/geom_xml2tree.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-03-17 08:22:48 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-03-17 08:22:48 +0000
commit2ad2651a98ce689790699f7fb7d1e6bfc9429f3f (patch)
treef40e2c5e59e1b55f6b5b4f9b27e26a2f94803f3d /lib/libgeom/geom_xml2tree.c
parent82e3b8201420ba2bc21f406003349c7eda6839fb (diff)
downloadsrc-2ad2651a98ce689790699f7fb7d1e6bfc9429f3f.tar.gz
src-2ad2651a98ce689790699f7fb7d1e6bfc9429f3f.zip
Constify arg to geom_lookupid().
Improve a diagnostic printf.
Notes
Notes: svn path=/head/; revision=112340
Diffstat (limited to 'lib/libgeom/geom_xml2tree.c')
-rw-r--r--lib/libgeom/geom_xml2tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c
index 277dda682e2b..6c8d73837405 100644
--- a/lib/libgeom/geom_xml2tree.c
+++ b/lib/libgeom/geom_xml2tree.c
@@ -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;