Fix a -Wcast-qual warning in libkern's strtol(), by using __DECONST. No

functional change.

MFC after:	3 days
This commit is contained in:
Dimitry Andric 2015-01-29 21:16:45 +00:00
parent d141141610
commit b94d92e5c8

View File

@ -124,6 +124,6 @@ strtol(nptr, endptr, base)
} else if (neg)
acc = -acc;
if (endptr != 0)
*((const char **)endptr) = any ? s - 1 : nptr;
*endptr = __DECONST(char *, any ? s - 1 : nptr);
return (acc);
}