[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.15 and 1.16

version 1.15, 2015/05/07 12:07:29 version 1.16, 2015/10/11 21:06:59
Line 19 
Line 19 
 #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 117 
Line 118 
         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 129 
Line 128 
                         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.15  
changed lines
  Added in v.1.16