diff options
-rw-r--r-- | include/icdb.h | 4 | ||||
-rw-r--r-- | lib/libc/stdlib/icdb.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/icdb.h b/include/icdb.h index ba69081a671..921e4ed88d3 100644 --- a/include/icdb.h +++ b/include/icdb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: icdb.h,v 1.3 2016/09/04 11:53:23 nicm Exp $ */ +/* $OpenBSD: icdb.h,v 1.4 2016/09/04 14:51:39 nicm Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> * @@ -25,7 +25,7 @@ __BEGIN_DECLS struct icdb; struct icdb *icdb_new(uint32_t version, uint32_t nentries, uint32_t entrysize, - uint32_t nkeys, uint32_t *keysizes, uint32_t *keyoffsets); + uint32_t nkeys, const uint32_t *keysizes, const uint32_t *keyoffsets); struct icdb *icdb_open(const char *name, int flags, uint32_t version); int icdb_get(struct icdb *db, void *entry, uint32_t idx); diff --git a/lib/libc/stdlib/icdb.c b/lib/libc/stdlib/icdb.c index 5bf549ecb33..e135bf025ec 100644 --- a/lib/libc/stdlib/icdb.c +++ b/lib/libc/stdlib/icdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: icdb.c,v 1.6 2016/05/30 03:06:58 guenther Exp $ */ +/* $OpenBSD: icdb.c,v 1.7 2016/09/04 14:51:39 nicm Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> * @@ -114,7 +114,7 @@ roundup(uint32_t num) struct icdb * icdb_new(uint32_t version, uint32_t nentries, uint32_t entrysize, - uint32_t nkeys, uint32_t *keysizes, uint32_t *keyoffsets) + uint32_t nkeys, const uint32_t *keysizes, const uint32_t *keyoffsets) { struct icdb *db; struct icdbinfo *info; |