From e3fe3962cb493c0f07c3670ce60c008b8712dc8e Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 15 Mar 2015 20:29:13 -0300 Subject: Move more Linux-specific code into Linux subdir. --- htop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'htop.c') diff --git a/htop.c b/htop.c index ef3182de..b1b0d7f4 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 #include @@ -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); } -- cgit v1.2.3