summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlum <lum@openbsd.org>2010-03-26 16:56:00 +0000
committerlum <lum@openbsd.org>2010-03-26 16:56:00 +0000
commit3d3e39ab0c2fd6e1b94ea70f1b9d6a5ab354140d (patch)
tree31a6a521285081e3cc59821657b7329cfa53d09a
parentAdd an ioctl to softraid to allow the boot block and boot loader to be (diff)
downloadwireguard-openbsd-3d3e39ab0c2fd6e1b94ea70f1b9d6a5ab354140d.tar.xz
wireguard-openbsd-3d3e39ab0c2fd6e1b94ea70f1b9d6a5ab354140d.zip
Remove unnecessary ptr.
ok otto@
-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;