From 5fa2d158266c24528132589a1bd77b33de7d4d25 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 6 Nov 2019 12:17:33 +0100 Subject: Cleanup: remove BSD style __progname Signed-off-by: David Oberhollenzer --- lib/common/print_version.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/common/print_version.c b/lib/common/print_version.c index 6e36614..0c7fe5c 100644 --- a/lib/common/print_version.c +++ b/lib/common/print_version.c @@ -12,8 +12,6 @@ #define LICENSE_LONG "GNU GPL version 3 or later" #define LICENSE_URL "https://gnu.org/licenses/gpl.html" -extern char *__progname; - static const char *version_string = "%s (%s) %s\n" "Copyright (c) 2019 David Oberhollenzer et al\n" @@ -21,7 +19,7 @@ static const char *version_string = "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n"; -void print_version(void) +void print_version(const char *progname) { - printf(version_string, __progname, PACKAGE_NAME, PACKAGE_VERSION); + printf(version_string, progname, PACKAGE_NAME, PACKAGE_VERSION); } -- cgit v1.2.3