summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-03 12:09:07 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-03 12:09:07 +0000
commit883124f12caeda9265541a28686aca054e488ef9 (patch)
tree256655d39fc4b5d71e2a2d0e30ded7761d04bc97
parentb44b43f687b8f98c50f0f22a5feae1bc72693b07 (diff)
downloadmandoc-883124f12caeda9265541a28686aca054e488ef9.tar.gz
Make sure the btree(3) goop is also BE. This covers both the DB metadata
and prior commits handle the contained binary fields.
-rw-r--r--apropos_db.c1
-rw-r--r--mandocdb.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/apropos_db.c b/apropos_db.c
index 6859a914..677ccaed 100644
--- a/apropos_db.c
+++ b/apropos_db.c
@@ -153,6 +153,7 @@ btree_open(void)
DB *db;
memset(&info, 0, sizeof(BTREEINFO));
+ info.lorder = 4321;
info.flags = R_DUP;
db = dbopen(MANDOC_DB, O_RDONLY, 0, DB_BTREE, &info);
diff --git a/mandocdb.c b/mandocdb.c
index 2c03da2a..08884302 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -333,6 +333,7 @@ main(int argc, char *argv[])
argv += optind;
memset(&info, 0, sizeof(BTREEINFO));
+ info.lorder = 4321;
info.flags = R_DUP;
mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL);