diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-01-05 03:25:52 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-01-05 03:25:52 +0000 |
commit | 8648816b0dfd2b5158223853ba228488c50d89b7 (patch) | |
tree | 3f335adb3230d82c7c40a7b7238dd1c6aa71e81f /usr.bin/mandoc/mansearch.c | |
parent | 796b79b2f66f673644d023a556461b3cffa729ab (diff) |
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 'usr.bin/mandoc/mansearch.c')
-rw-r--r-- | usr.bin/mandoc/mansearch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mandoc/mansearch.c b/usr.bin/mandoc/mansearch.c index 16fe73f7336..912d051ba8c 100644 --- a/usr.bin/mandoc/mansearch.c +++ b/usr.bin/mandoc/mansearch.c @@ -1,4 +1,4 @@ -/* $Id: mansearch.c,v 1.6 2014/01/05 03:06:36 schwarze Exp $ */ +/* $Id: mansearch.c,v 1.7 2014/01/05 03:25:51 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -271,7 +271,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); @@ -284,8 +284,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); } |