aboutsummaryrefslogtreecommitdiff
path: root/lib/common/print_version.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-06 12:17:33 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-06 12:17:33 +0100
commit5fa2d158266c24528132589a1bd77b33de7d4d25 (patch)
tree9c3c6517a1e112a51a02298e8422a33f54841788 /lib/common/print_version.c
parent2c49bf4fca54e9acb47844878cc43617ce2a1422 (diff)
Cleanup: remove BSD style __progname
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common/print_version.c')
-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);
}