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

Diff for /mandoc/mandocdb.c between version 1.39 and 1.41

version 1.39, 2011/12/25 14:58:39 version 1.41, 2011/12/25 19:31:25
Line 1452  static void
Line 1452  static void
 ofile_argbuild(int argc, char *argv[], struct of **of)  ofile_argbuild(int argc, char *argv[], struct of **of)
 {  {
         char             buf[MAXPATHLEN];          char             buf[MAXPATHLEN];
         char            *sec, *arch, *title, *p;          const char      *sec, *arch, *title;
           char            *p;
         int              i, src_form;          int              i, src_form;
         struct of       *nof;          struct of       *nof;
   
Line 1538  ofile_argbuild(int argc, char *argv[], struct of **of)
Line 1539  ofile_argbuild(int argc, char *argv[], struct of **of)
  * Recursively build up a list of files to parse.   * Recursively build up a list of files to parse.
  * We use this instead of ftw() and so on because I don't want global   * We use this instead of ftw() and so on because I don't want global
  * variables hanging around.   * variables hanging around.
  * This ignores the mandoc.db and mandoc.index files, but assumes that   * This ignores the whatis.db and whatis.index files, but assumes that
  * everything else is a manual.   * everything else is a manual.
  * Pass in a pointer to a NULL structure for the first invocation.   * Pass in a pointer to a NULL structure for the first invocation.
  */   */
Line 1756  ofile_dirbuild(const char *dir, const char* psec, cons
Line 1757  ofile_dirbuild(const char *dir, const char* psec, cons
   
                 if (verb > 1)                  if (verb > 1)
                         printf("%s: scheduling\n", buf);                          printf("%s: scheduling\n", buf);
   
                 if (NULL == *of) {                  if (NULL == *of) {
                         *of = nof;                          *of = nof;
                         (*of)->first = nof;                          (*of)->first = nof;
Line 1774  ofile_free(struct of *of)
Line 1776  ofile_free(struct of *of)
 {  {
         struct of       *nof;          struct of       *nof;
   
         while (of) {          if (NULL != of)
                   of = of->first;
   
           while (NULL != of) {
                 nof = of->next;                  nof = of->next;
                 free(of->fname);                  free(of->fname);
                 free(of->sec);                  free(of->sec);

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.41

CVSweb