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

Diff for /mandoc/mandocdb.c between version 1.179 and 1.181

version 1.179, 2014/12/09 07:29:42 version 1.181, 2015/01/02 17:02:19
Line 350  mandocdb(int argc, char *argv[])
Line 350  mandocdb(int argc, char *argv[])
   
         mpages_info.alloc  = mlinks_info.alloc  = hash_alloc;          mpages_info.alloc  = mlinks_info.alloc  = hash_alloc;
         mpages_info.calloc = mlinks_info.calloc = hash_calloc;          mpages_info.calloc = mlinks_info.calloc = hash_calloc;
         mpages_info.free  = mlinks_info.free  = hash_free;          mpages_info.free   = mlinks_info.free   = hash_free;
           mpages_info.data   = mlinks_info.data   = NULL;
   
         mpages_info.key_offset = offsetof(struct mpage, inodev);          mpages_info.key_offset = offsetof(struct mpage, inodev);
         mlinks_info.key_offset = offsetof(struct mlink, file);          mlinks_info.key_offset = offsetof(struct mlink, file);
Line 852  filescan(const char *file)
Line 853  filescan(const char *file)
         if (strlcpy(mlink->file, start, sizeof(mlink->file)) >=          if (strlcpy(mlink->file, start, sizeof(mlink->file)) >=
             sizeof(mlink->file)) {              sizeof(mlink->file)) {
                 say(start, "Filename too long");                  say(start, "Filename too long");
                   free(mlink);
                 return;                  return;
         }          }
   
Line 1105  mpages_merge(struct mparse *mp)
Line 1107  mpages_merge(struct mparse *mp)
         str_info.alloc = hash_alloc;          str_info.alloc = hash_alloc;
         str_info.calloc = hash_calloc;          str_info.calloc = hash_calloc;
         str_info.free = hash_free;          str_info.free = hash_free;
           str_info.data = NULL;
         str_info.key_offset = offsetof(struct str, key);          str_info.key_offset = offsetof(struct str, key);
   
         if ( ! nodb)          if ( ! nodb)

Legend:
Removed from v.1.179  
changed lines
  Added in v.1.181

CVSweb