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

Diff for /mandoc/manpath.c between version 1.26 and 1.27

version 1.26, 2015/06/10 19:26:13 version 1.27, 2015/10/11 21:12:55
Line 21 
Line 21 
 #include <sys/stat.h>  #include <sys/stat.h>
   
 #include <ctype.h>  #include <ctype.h>
   #include <err.h>
 #include <limits.h>  #include <limits.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 165  manpath_add(struct manpaths *dirs, const char *dir, in
Line 166  manpath_add(struct manpaths *dirs, const char *dir, in
         size_t           i;          size_t           i;
   
         if (NULL == (cp = realpath(dir, buf))) {          if (NULL == (cp = realpath(dir, buf))) {
                 if (complain) {                  if (complain)
                         fputs("manpath: ", stderr);                          warn("manpath: %s", dir);
                         perror(dir);  
                 }  
                 return;                  return;
         }          }
   
Line 177  manpath_add(struct manpaths *dirs, const char *dir, in
Line 176  manpath_add(struct manpaths *dirs, const char *dir, in
                         return;                          return;
   
         if (stat(cp, &sb) == -1) {          if (stat(cp, &sb) == -1) {
                 if (complain) {                  if (complain)
                         fputs("manpath: ", stderr);                          warn("manpath: %s", dir);
                         perror(dir);  
                 }  
                 return;                  return;
         }          }
   

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

CVSweb