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

This commit is contained in:
eadler 2018-06-13 08:52:14 +00:00
parent 2a1aedb39e
commit f49614e3b1

View File

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