Fix a -Wcast-qual warning in libkern's strtol(), by using __DECONST. No
functional change. MFC after: 3 days
This commit is contained in:
parent
d141141610
commit
b94d92e5c8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user