summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2016-09-04 14:51:40 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2016-09-04 14:51:40 +0000
commit2b21669c21d69cb77ae44f7892627ed922798eba (patch)
tree6bc939c39c16cfe139acd8e2feb910d5e42ae60e /lib/libc/stdlib
parent2d1a9b6a458626d4016106cdd8f0bf4f8b3497f5 (diff)
Make the key sizes and offsets arrays const, ok tedu
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/icdb.c4
1 files changed, 2 insertions, 2 deletions
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;