summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-03-18 08:23:07 +1100
committerNathan Scott <nathans@redhat.com>2021-03-22 17:16:40 +1100
commitd56d23d91adf3fad512e5311fcdd0ca129e820c7 (patch)
tree8c6d3059243904dde7689d38bacf72366bd04d4f /htop.c
parent0ada9f325f69ddb0f917f023fa701ce7669cd370 (diff)
Each platform defines its own long opt macro, prefer printf
Follow up on the two items of feedback from cgzones review, and resolve a build failure picked up by CI on Mac OS X. Related to https://github.com/htop-dev/htop/pull/564
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/htop.c b/htop.c
index 892057ea..15eb2a4b 100644
--- a/htop.c
+++ b/htop.c
@@ -36,20 +36,12 @@ in the source distribution for its full text.
#include "XUtils.h"
-#ifndef PLATFORM_LONG_OPTIONS
-#define PLATFORM_LONG_OPTIONS
-#endif
-
-#ifndef PLATFORM_LONG_OPTIONS_USAGE
-#define PLATFORM_LONG_OPTIONS_USAGE
-#endif
-
static void printVersionFlag(const char* name) {
- fprintf(stdout, "%s " VERSION "\n", name);
+ printf("%s " VERSION "\n", name);
}
static void printHelpFlag(const char* name) {
- fprintf(stdout, "%s " VERSION "\n"
+ printf("%s " VERSION "\n"
COPYRIGHT "\n"
"Released under the GNU GPLv2.\n\n"
"-C --no-color Use a monochrome color scheme\n"

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