summaryrefslogtreecommitdiffstats
path: root/dbm_map.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-17 14:43:54 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-17 14:43:54 +0000
commitdaabd17dd590f9f8722655c882461e0bd93e748c (patch)
treed9c81cef364525ad4ccac64927232d649a47e272 /dbm_map.c
parentcbf7c76141d6a8acfa3226ae756bb6ac9e9dc78e (diff)
downloadmandoc-daabd17dd590f9f8722655c882461e0bd93e748c.tar.gz
Improve clarity of some casts;
from Christos Zoulas <christos at NetBSD>.
Diffstat (limited to 'dbm_map.c')
-rw-r--r--dbm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbm_map.c b/dbm_map.c
index 0c1f5eeb..75a9c717 100644
--- a/dbm_map.c
+++ b/dbm_map.c
@@ -175,7 +175,7 @@ dbm_getint(int32_t offset)
int32_t
dbm_addr(const void *p)
{
- return htobe32((char *)p - dbm_base);
+ return htobe32((const char *)p - dbm_base);
}
int