aboutsummaryrefslogtreecommitdiffstats
path: root/pcp-htop.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcp-htop.c')
-rw-r--r--pcp-htop.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pcp-htop.c b/pcp-htop.c
index 2713c89..ed585ec 100644
--- a/pcp-htop.c
+++ b/pcp-htop.c
@@ -14,13 +14,14 @@ in the source distribution for its full text.
#include "Platform.h"
+const char* program = "pcp-htop";
+
int main(int argc, char** argv) {
- const char* name = "pcp-htop";
- pmSetProgname(name);
+ pmSetProgname(program);
/* extract environment variables */
opts.flags |= PM_OPTFLAG_ENV_ONLY;
(void)pmGetOptions(argc, argv, &opts);
- return CommandLine_run(name, argc, argv);
+ return CommandLine_run(argc, argv);
}

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