summaryrefslogtreecommitdiffstats
path: root/compat_err.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat_err.c')
-rw-r--r--compat_err.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/compat_err.c b/compat_err.c
index 900769c2..01c2fefe 100644
--- a/compat_err.c
+++ b/compat_err.c
@@ -43,15 +43,13 @@ int dummy;
#include <stdlib.h>
#include <string.h>
-extern char *__progname;
-
static void vwarni(const char *, va_list);
static void vwarnxi(const char *, va_list);
static void
vwarnxi(const char *fmt, va_list ap)
{
- fprintf(stderr, "%s: ", __progname);
+ fprintf(stderr, "%s: ", getprogname());
if (fmt != NULL)
vfprintf(stderr, fmt, ap);
}