From 14da84f877a0f3627ddaea836c9537b2292fa22d Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 4 Apr 2023 16:47:11 +1000 Subject: Refactor to use a program name pointer instead of PACKAGE macro During SEGV handling under pcp-htop several incorrect strings were observed - in particular reporting htop as the binary name instead of pcp-htop. This is something we want to be crystal clear on when we request user stack traces etc, so make sure this cannot be done incorrectly. --- CommandLine.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CommandLine.h') diff --git a/CommandLine.h b/CommandLine.h index fbdede84..18395005 100644 --- a/CommandLine.h +++ b/CommandLine.h @@ -14,6 +14,8 @@ typedef enum { STATUS_OK_EXIT } CommandLineStatus; -int CommandLine_run(const char* name, int argc, char** argv); +extern const char* program; + +int CommandLine_run(int argc, char** argv); #endif -- cgit v1.2.3