From: Mark Andrews Date: Fri, 25 Jul 2003 02:04:28 +0000 (+0000) Subject: deconst X-Git-Tag: v9.3.0rc1~617^3 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=4691e18ca0c900a432bd1e1b6f65f97ee1f3ebcf;p=thirdparty%2Fbind9.git deconst --- diff --git a/lib/isc/strtoul.c b/lib/isc/strtoul.c index 8c27f0d8fff..875b425cacf 100644 --- a/lib/isc/strtoul.c +++ b/lib/isc/strtoul.c @@ -52,7 +52,7 @@ static char sccsid[] = "@(#)strtoul.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ -/* $Id: strtoul.c,v 1.1 2003/06/24 05:10:32 marka Exp $ */ +/* $Id: strtoul.c,v 1.2 2003/07/25 02:04:28 marka Exp $ */ #include @@ -61,6 +61,7 @@ static char sccsid[] = "@(#)strtoul.c 8.1 (Berkeley) 6/4/93"; #include #include +#include /* * Convert a string to an unsigned long integer. @@ -122,6 +123,6 @@ isc_strtoul(const char *nptr, char **endptr, int base) { } else if (neg) acc = -acc; if (endptr != 0) - *endptr = (char *)(any ? s - 1 : nptr); + DE_CONST(any ? s - 1 : nptr, *endptr); return (acc); }