aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/common/print_version.c6
1 files changed, 2 insertions, 4 deletions
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);
}