svn commit: r335040 - head/usr.bin/top
Eitan Adler
eadler at FreeBSD.org
Wed Jun 13 08:52:17 UTC 2018
Author: eadler
Date: Wed Jun 13 08:52:14 2018
New Revision: 335040
URL: https://svnweb.freebsd.org/changeset/base/335040
Log:
top(1): shift from atoi to non-deprecated function
Modified:
head/usr.bin/top/utils.c
Modified: head/usr.bin/top/utils.c
==============================================================================
--- head/usr.bin/top/utils.c Wed Jun 13 08:52:12 2018 (r335039)
+++ head/usr.bin/top/utils.c Wed Jun 13 08:52:14 2018 (r335040)
@@ -47,7 +47,7 @@ atoiwi(const char *str)
}
else
{
- return(atoi(str));
+ return((int)strtol(str, NULL, 10));
}
}
return(0);
More information about the svn-src-head
mailing list