Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2018 08:52:15 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335040 - head/usr.bin/top
Message-ID:  <201806130852.w5D8qFr4093712@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806130852.w5D8qFr4093712>