From a5a79a7af92e40132a0b0e09c9fc0eaa57985b9c Mon Sep 17 00:00:00 2001 From: lum Date: Fri, 26 Mar 2010 16:56:01 +0000 Subject: Remove unnecessary ptr. ok otto@ --- usr.bin/top/top.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'usr.bin/top') 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; -- cgit v1.2.3