[BACK]Return to manpath.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/manpath.c between version 1.21 and 1.22

version 1.21, 2017/06/13 15:05:22 version 1.22, 2017/07/01 09:47:23
Line 1 
Line 1 
 /*      $OpenBSD$       */  /*      $OpenBSD$ */
 /*  /*
  * Copyright (c) 2011, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2011, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
  * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
Line 29 
Line 29 
 #include "manconf.h"  #include "manconf.h"
   
 #define MAN_CONF_FILE   "/etc/man.conf"  #define MAN_CONF_FILE   "/etc/man.conf"
   #define MANPATH_BASE    "/usr/share/man:/usr/X11R6/man"
 #define MANPATH_DEFAULT "/usr/share/man:/usr/X11R6/man:/usr/local/man"  #define MANPATH_DEFAULT "/usr/share/man:/usr/X11R6/man:/usr/local/man"
   
 static  void     manconf_file(struct manconf *, const char *);  static  void     manconf_file(struct manconf *, const char *);
Line 88 
Line 89 
   
         /* MANPATH overrides man.conf(5) completely. */          /* MANPATH overrides man.conf(5) completely. */
         manpath_parseline(&conf->manpath, defp, 0);          manpath_parseline(&conf->manpath, defp, 0);
   }
   
   void
   manpath_base(struct manpaths *dirs)
   {
           char path_base[] = MANPATH_BASE;
           manpath_parseline(dirs, path_base, 0);
 }  }
   
 /*  /*

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22