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

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

version 1.1, 2011/11/23 09:47:38 version 1.2, 2011/11/24 10:43:55
Line 92  manpath_add(struct manpaths *dirs, const char *dir) 
Line 92  manpath_add(struct manpaths *dirs, const char *dir) 
 void  void
 manpath_parseconf(struct manpaths *dirs)  manpath_parseconf(struct manpaths *dirs)
 {  {
         FILE            *stream;  
 #ifdef  USE_MANPATH  #ifdef  USE_MANPATH
           FILE            *stream;
         char            *buf;          char            *buf;
         size_t           sz, bsz;          size_t           sz, bsz;
   
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);
   #endif
   }
   
   void
   manpath_free(struct manpaths *p)
   {
           int              i;
   
           for (i = 0; i < p->sz; i++)
                   free(p->paths[i]);
   
           free(p->paths);
   }
   
   void
   manpath_manconf(struct manpaths *dirs)
   {
           FILE            *stream;
         char            *p, *q;          char            *p, *q;
         size_t           len, keysz;          size_t           len, keysz;
   
Line 152  manpath_parseconf(struct manpaths *dirs)
Line 171  manpath_parseconf(struct manpaths *dirs)
         }          }
   
         fclose(stream);          fclose(stream);
 #endif  
 }  
   
 void  
 manpath_free(struct manpaths *p)  
 {  
         int              i;  
   
         for (i = 0; i < p->sz; i++)  
                 free(p->paths[i]);  
   
         free(p->paths);  
 }  }

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

CVSweb