summaryrefslogtreecommitdiffstats
path: root/manpath.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-05-29 22:48:10 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-05-29 22:48:10 +0000
commitc1654e5128f96e284f8c7cfce1029b36677a6fd2 (patch)
treeb3e1349b11d84e240d8800e6d0acd5123d390d40 /manpath.c
parent9ba2ba024a33d9693fb061fcfb634ea35492ca49 (diff)
downloadmandoc-c1654e5128f96e284f8c7cfce1029b36677a6fd2.tar.gz
Sync to OpenBSD:
* Guard <sys/param.h> inclusion by #ifdef USE_MANPATH to make it more obvious why this isn't needed on OpenBSD. Noticed by deraadt@. * Resolve gratuitious whitespace differences: Blanks before tabs and on empty lines.
Diffstat (limited to 'manpath.c')
-rw-r--r--manpath.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/manpath.c b/manpath.c
index 563965c0..e08e917a 100644
--- a/manpath.c
+++ b/manpath.c
@@ -19,7 +19,9 @@
#include "config.h"
#endif
+#ifdef USE_MANPATH
#include <sys/param.h>
+#endif
#include <assert.h>
#include <ctype.h>
@@ -90,8 +92,8 @@ manpath_parse(struct manpaths *dirs, const char *file,
char *insert;
/* Always prepend -m. */
- manpath_parseline(dirs, auxp);
-
+ manpath_parseline(dirs, auxp);
+
/* If -M is given, it overrides everything else. */
if (NULL != defp) {
manpath_parseline(dirs, defp);