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:
eadler 2018-06-13 08:52:17 +00:00
parent f49614e3b1
commit 56f7be9651
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);
}