Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2013 04:22:47 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253249 - head/lib/libgeom
Message-ID:  <201307120422.r6C4Mlq0052717@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Fri Jul 12 04:22:46 2013
New Revision: 253249
URL: http://svnweb.freebsd.org/changeset/base/253249

Log:
  Revert r253247.  This change should be improved based on a lesson learnt
  from r233646 first.
  
  Pointed out by:	jmallett

Modified:
  head/lib/libgeom/geom_xml2tree.c

Modified: head/lib/libgeom/geom_xml2tree.c
==============================================================================
--- head/lib/libgeom/geom_xml2tree.c	Fri Jul 12 02:42:37 2013	(r253248)
+++ head/lib/libgeom/geom_xml2tree.c	Fri Jul 12 04:22:46 2013	(r253249)
@@ -75,10 +75,10 @@ StartElement(void *userData, const char 
 	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, "",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307120422.r6C4Mlq0052717>