From 5fa2d158266c24528132589a1bd77b33de7d4d25 Mon Sep 17 00:00:00 2001
From: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Date: Wed, 6 Nov 2019 12:17:33 +0100
Subject: Cleanup: remove BSD style __progname

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
---
 include/common.h | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

(limited to 'include')

diff --git a/include/common.h b/include/common.h
index 676dd6a..93bbb26 100644
--- a/include/common.h
+++ b/include/common.h
@@ -157,12 +157,7 @@ int pushdn(const char *path, size_t len);
 /* Returns 0 on success. On failure, prints error message to stderr. */
 int popd(void);
 
-/*
-  A common implementation of the '--version' command line flag.
-
-  Prints out version information. The program name is extracted from the
-  BSD style __progname global variable.
-*/
-void print_version(void);
+/* A common implementation of the '--version' command line flag. */
+void print_version(const char *progname);
 
 #endif /* COMMON_H */
-- 
cgit v1.2.3