top(1): shift from atoi to non-deprecated function

This commit is contained in:
Eitan Adler 2018-06-13 08:52:14 +00:00
parent 704daa9b87
commit c655e639c2

View File

@ -47,7 +47,7 @@ atoiwi(const char *str)
}
else
{
return(atoi(str));
return((int)strtol(str, NULL, 10));
}
}
return(0);