[BACK]Return to manpath.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/manpath.c between version 1.2 and 1.3

version 1.2, 2011/11/24 10:43:55 version 1.3, 2011/11/24 10:44:56
Line 123  manpath_parseconf(struct manpaths *dirs)
Line 123  manpath_parseconf(struct manpaths *dirs)
         free(buf);          free(buf);
         pclose(stream);          pclose(stream);
 #else  #else
         manpath_manconf(dirs);          manpath_manconf(MAN_CONF_FILE, dirs);
 #endif  #endif
 }  }
   
Line 139  manpath_free(struct manpaths *p)
Line 139  manpath_free(struct manpaths *p)
 }  }
   
 void  void
 manpath_manconf(struct manpaths *dirs)  manpath_manconf(const char *file, struct manpaths *dirs)
 {  {
         FILE            *stream;          FILE            *stream;
         char            *p, *q;          char            *p, *q;
Line 148  manpath_manconf(struct manpaths *dirs)
Line 148  manpath_manconf(struct manpaths *dirs)
         keysz = strlen(MAN_CONF_KEY);          keysz = strlen(MAN_CONF_KEY);
         assert(keysz > 0);          assert(keysz > 0);
   
         if (NULL == (stream = fopen(MAN_CONF_FILE, "r")))          if (NULL == (stream = fopen(file, "r")))
                 return;                  return;
   
         while (NULL != (p = fgetln(stream, &len))) {          while (NULL != (p = fgetln(stream, &len))) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVSweb