summaryrefslogtreecommitdiff
path: root/usr.bin/top
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2010-03-26 16:56:01 +0000
committerlum <lum@cvs.openbsd.org>2010-03-26 16:56:01 +0000
commita5a79a7af92e40132a0b0e09c9fc0eaa57985b9c (patch)
treeb9b7326c006e9c03513238d63bf9c94b1f757985 /usr.bin/top
parent0eed1f02202c01ba55015b01f6998293613e7d6d (diff)
Remove unnecessary ptr.
ok otto@
Diffstat (limited to 'usr.bin/top')
-rw-r--r--usr.bin/top/top.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c
index 58722f957f4..b12836b76ba 100644
--- a/usr.bin/top/top.c
+++ b/usr.bin/top/top.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: top.c,v 1.72 2010/03/23 16:16:09 lum Exp $ */
+/* $OpenBSD: top.c,v 1.73 2010/03/26 16:56:00 lum Exp $ */
/*
* Top users/processes display for Unix
@@ -666,9 +666,7 @@ rundisplay(void)
"Number of processes to show: ");
if (readline(tempbuf, 8) > 0) {
- char *ptr;
- ptr = tempbuf;
- if ((i = atoiwi(ptr)) != Invalid) {
+ if ((i = atoiwi(tempbuf)) != Invalid) {
if (i > max_topn) {
new_message(MT_standout |
MT_delayed,
@@ -722,9 +720,7 @@ rundisplay(void)
itoa(displays));
if (readline(tempbuf, 10) > 0) {
- char *ptr;
- ptr = tempbuf;
- if ((i = atoiwi(ptr)) != Invalid) {
+ if ((i = atoiwi(tempbuf)) != Invalid) {
if (i == 0)
quit(0);
displays = i;