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

Diff for /mandoc/mansearch.c between version 1.15 and 1.16

version 1.15, 2014/01/05 03:06:43 version 1.16, 2014/01/05 03:25:51
Line 279  mansearch(const struct mansearch *search,
Line 279  mansearch(const struct mansearch *search,
                  * distribution of buckets in the table.                   * distribution of buckets in the table.
                  */                   */
                 while (SQLITE_ROW == (c = sqlite3_step(s))) {                  while (SQLITE_ROW == (c = sqlite3_step(s))) {
                         id = sqlite3_column_int64(s, 5);                          id = sqlite3_column_int64(s, 3);
                         idx = ohash_lookup_memory                          idx = ohash_lookup_memory
                                 (&htab, (char *)&id,                                  (&htab, (char *)&id,
                                  sizeof(uint64_t), (uint32_t)id);                                   sizeof(uint64_t), (uint32_t)id);
Line 292  mansearch(const struct mansearch *search,
Line 292  mansearch(const struct mansearch *search,
                         mp->file = mandoc_strdup                          mp->file = mandoc_strdup
                                 ((char *)sqlite3_column_text(s, 0));                                  ((char *)sqlite3_column_text(s, 0));
                         mp->desc = mandoc_strdup                          mp->desc = mandoc_strdup
                                 ((char *)sqlite3_column_text(s, 3));                                  ((char *)sqlite3_column_text(s, 1));
                         mp->form = sqlite3_column_int(s, 4);                          mp->form = sqlite3_column_int(s, 2);
                         ohash_insert(&htab, idx, mp);                          ohash_insert(&htab, idx, mp);
                 }                  }
   

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

CVSweb