* mdocml: Sync to OpenBSD: * Guard <sys/param.h> inclusion by #ifdef
@ 2013-05-29 22:48 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-05-29 22:48 UTC (permalink / raw)
To: source
Log Message:
-----------
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.
Modified Files:
--------------
mdocml:
manpath.c
Revision Data
-------------
Index: manpath.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/manpath.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -Lmanpath.c -Lmanpath.c -u -p -r1.9 -r1.10
--- manpath.c
+++ 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, con
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);
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-29 22:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 22:48 mdocml: Sync to OpenBSD: * Guard <sys/param.h> inclusion by #ifdef schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).