summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-07-12 04:22:46 +0000
committerhrs <hrs@FreeBSD.org>2013-07-12 04:22:46 +0000
commita243c0eb2c19b0f1cbfa3233f53bf61ab2149e05 (patch)
tree22b0e9ab76bbebd44c9d7bf8dea25492c760c66e
parent7b04a1affb3939db7d1e534bb88b1c9712c3c311 (diff)
downloadFreeBSD-src-a243c0eb2c19b0f1cbfa3233f53bf61ab2149e05.zip
FreeBSD-src-a243c0eb2c19b0f1cbfa3233f53bf61ab2149e05.tar.gz
Revert r253247. This change should be improved based on a lesson learnt
from r233646 first. Pointed out by: jmallett
-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 1b1ce4f..02be019 100644
--- a/lib/libgeom/geom_xml2tree.c
+++ b/lib/libgeom/geom_xml2tree.c
@@ -75,10 +75,10 @@ StartElement(void *userData, const char *name, const char **attr)
ref = NULL;
for (i = 0; attr[i] != NULL; i += 2) {
if (!strcmp(attr[i], "id")) {
- id = (void *)strtoumax(attr[i + 1], NULL, 0);
+ id = (void *)strtoul(attr[i + 1], NULL, 0);
mt->nident++;
} else if (!strcmp(attr[i], "ref")) {
- ref = (void *)strtoumax(attr[i + 1], NULL, 0);
+ ref = (void *)strtoul(attr[i + 1], NULL, 0);
} else
printf("%*.*s[%s = %s]\n",
mt->level + 1, mt->level + 1, "",
OpenPOWER on IntegriCloud