summaryrefslogtreecommitdiffstats
path: root/apropos_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'apropos_db.c')
-rw-r--r--apropos_db.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apropos_db.c b/apropos_db.c
index 41311ca6..6621a1a1 100644
--- a/apropos_db.c
+++ b/apropos_db.c
@@ -24,8 +24,6 @@
#include <string.h>
#include <unistd.h>
-#include <arpa/inet.h>
-
#ifdef __linux__
# include <db_185.h>
#else
@@ -177,8 +175,8 @@ btree_read(const DBT *k, const DBT *v,
vp = v->data;
norm_string((const char *)k->data, mc, buf);
- dbv->rec = ntohl(vp->rec);
- dbv->mask = vp->mask;
+ dbv->rec = betoh32(vp->rec);
+ dbv->mask = betoh64(vp->mask);
return(1);
}