libc: remove explicit cast NULL in atoi
There isn't any reason to cast NULL so just remove it. Noticed when cleaning up top. Reviewed by: pstef
This commit is contained in:
parent
f49614e3b1
commit
56f7be9651
@ -57,7 +57,7 @@ representation.
|
||||
.Pp
|
||||
It is equivalent to:
|
||||
.Bd -literal -offset indent
|
||||
(int)strtol(nptr, (char **)NULL, 10);
|
||||
(int)strtol(nptr, NULL, 10);
|
||||
.Ed
|
||||
.Pp
|
||||
The
|
||||
|
@ -46,11 +46,11 @@ __FBSDID("$FreeBSD$");
|
||||
int
|
||||
atoi(const char *str)
|
||||
{
|
||||
return (int)strtol(str, (char **)NULL, 10);
|
||||
return (int)strtol(str, NULL, 10);
|
||||
}
|
||||
|
||||
int
|
||||
atoi_l(const char *str, locale_t locale)
|
||||
{
|
||||
return (int)strtol_l(str, (char **)NULL, 10, locale);
|
||||
return (int)strtol_l(str, NULL, 10, locale);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user