summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenis Vlasenko2006-10-06 09:49:47 +0000
committerDenis Vlasenko2006-10-06 09:49:47 +0000
commitc12f53090bd41dbb87279083bc442769cb0610f0 (patch)
tree079fff1c37f04ea7f25f00cdc4360d52a69b77c5 /procps
parent4e6ceb44554d265eed24c414b9a201d51d00fee2 (diff)
downloadbusybox-c12f53090bd41dbb87279083bc442769cb0610f0.zip
busybox-c12f53090bd41dbb87279083bc442769cb0610f0.tar.gz
dnsd fix; option_mask32 added. dnsd needs more love.
Diffstat (limited to 'procps')
-rw-r--r--procps/top.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/procps/top.c b/procps/top.c
index ebfbcb8..be1c45f 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -34,8 +34,7 @@ typedef int (*cmp_t)(procps_status_t *P, procps_status_t *Q);
static procps_status_t *top; /* Hehe */
static int ntop;
-static unsigned option_mask;
-#define OPT_BATCH_MODE (option_mask & 0x4)
+#define OPT_BATCH_MODE (option_mask32 & 0x4)
#ifdef CONFIG_FEATURE_USE_TERMIOS
static int pid_sort(procps_status_t *P, procps_status_t *Q)
@@ -398,11 +397,11 @@ int top_main(int argc, char **argv)
/* do normal option parsing */
interval = 5;
opt_complementary = "-";
- option_mask = getopt32(argc, argv, "d:n:b",
+ getopt32(argc, argv, "d:n:b",
&sinterval, &siterations);
- if (option_mask & 0x1) interval = atoi(sinterval); // -d
- if (option_mask & 0x2) iterations = atoi(siterations); // -n
- //if (option_mask & 0x4) // -b
+ if (option_mask32 & 0x1) interval = atoi(sinterval); // -d
+ if (option_mask32 & 0x2) iterations = atoi(siterations); // -n
+ //if (option_mask32 & 0x4) // -b
/* change to /proc */
xchdir("/proc");