diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-11-06 16:30:33 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-11-06 16:30:33 +0000 |
commit | 3fffa6c6072826f70aebe72863968bffb9d714cc (patch) | |
tree | 3baa7131a7aebf9cc11c25b444093e25a01efbcc /mandoc_aux.c | |
parent | 3e3c69e597d7b127284c4d3fc3acbffb42f51999 (diff) | |
download | mandoc-3fffa6c6072826f70aebe72863968bffb9d714cc.tar.gz mandoc-3fffa6c6072826f70aebe72863968bffb9d714cc.tar.zst mandoc-3fffa6c6072826f70aebe72863968bffb9d714cc.zip |
Use getprogname(3) rather than __progname.
Suggested by Joerg@ Sonnenberger (NetBSD).
Last year, deraadt@ confirmed on tech@ that this "has the potential
to be more portable", and micro-optimizing for speed is not relevant
here. Also gets rid of one global variable.
Diffstat (limited to 'mandoc_aux.c')
-rw-r--r-- | mandoc_aux.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mandoc_aux.c b/mandoc_aux.c index ee37f04d..fa72ba0d 100644 --- a/mandoc_aux.c +++ b/mandoc_aux.c @@ -1,4 +1,4 @@ -/* $Id: mandoc_aux.c,v 1.7 2015/10/12 21:09:54 schwarze Exp $ */ +/* $Id: mandoc_aux.c,v 1.8 2015/11/06 16:30:33 schwarze Exp $ */ /* * Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -28,9 +28,6 @@ #include "mandoc.h" #include "mandoc_aux.h" -#if !HAVE_PROGNAME -const char *mandoc_progname; -#endif int mandoc_asprintf(char **dest, const char *fmt, ...) |