summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-15 22:57:01 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-15 22:57:01 -0300
commit967b6569a134a53a35535b20d06623fee983d8e3 (patch)
tree8c5522d31ccc59d0f813240c20a21bc1cb77c9f2 /htop.c
parentd2acffa59abba396b710f71436823c54bfcf2f7e (diff)
parente3fe3962cb493c0f07c3670ce60c008b8712dc8e (diff)
Merge branch 'wip' of https://github.com/hishamhm/htop into freebsd
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index c6e8af8f..af2a5103 100644
--- a/htop.c
+++ b/htop.c
@@ -16,6 +16,7 @@ in the source distribution for its full text.
#include "ScreenManager.h"
#include "Settings.h"
#include "UsersTable.h"
+#include "Platform.h"
#include <getopt.h>
#include <locale.h>
@@ -101,7 +102,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
break;
case 's':
if (strcmp(optarg, "help") == 0) {
- for (int j = 1; j < LAST_PROCESSFIELD; j++) {
+ for (int j = 1; j < Platform_numberOfFields; j++) {
const char* name = Process_fields[j].name;
if (name) printf ("%s\n", name);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy