diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-01-05 03:25:51 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-01-05 03:25:51 +0000 |
commit | 608a6c89c9426ab56ed7aed08e536320749c0734 (patch) | |
tree | 5794e5bff174141dd98748def06215e0d9df335c /mansearch.c | |
parent | 309ba0ab0e453acde16dc583e036874dbeb4a2a4 (diff) | |
download | mandoc-608a6c89c9426ab56ed7aed08e536320749c0734.tar.gz |
Remove the obsolete sec and arch columns from the mpages table.
They were confusing because a manpage can have MLINKS in different
sections and architectures.
Diffstat (limited to 'mansearch.c')
-rw-r--r-- | mansearch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mansearch.c b/mansearch.c index a9c7a2d4..ff88898b 100644 --- a/mansearch.c +++ b/mansearch.c @@ -279,7 +279,7 @@ mansearch(const struct mansearch *search, * distribution of buckets in the table. */ while (SQLITE_ROW == (c = sqlite3_step(s))) { - id = sqlite3_column_int64(s, 5); + id = sqlite3_column_int64(s, 3); idx = ohash_lookup_memory (&htab, (char *)&id, sizeof(uint64_t), (uint32_t)id); @@ -292,8 +292,8 @@ mansearch(const struct mansearch *search, mp->file = mandoc_strdup ((char *)sqlite3_column_text(s, 0)); mp->desc = mandoc_strdup - ((char *)sqlite3_column_text(s, 3)); - mp->form = sqlite3_column_int(s, 4); + ((char *)sqlite3_column_text(s, 1)); + mp->form = sqlite3_column_int(s, 2); ohash_insert(&htab, idx, mp); } |