diff options
author | nicm <> | 2016-09-04 14:51:39 +0000 |
---|---|---|
committer | nicm <> | 2016-09-04 14:51:39 +0000 |
commit | 20323935e1006deec963ad00e5d00972d7ade3f1 (patch) | |
tree | a9d3baaa92370edc5eab6b9fb3dd35f68e82d18b | |
parent | e38c58272a121e2bc9a785ec4001bbc802d68f66 (diff) | |
download | openbsd-20323935e1006deec963ad00e5d00972d7ade3f1.tar.gz openbsd-20323935e1006deec963ad00e5d00972d7ade3f1.tar.bz2 openbsd-20323935e1006deec963ad00e5d00972d7ade3f1.zip |
Make the key sizes and offsets arrays const, ok tedu
-rw-r--r-- | src/lib/libc/stdlib/icdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/icdb.c b/src/lib/libc/stdlib/icdb.c index 5bf549ecb3..e135bf025e 100644 --- a/src/lib/libc/stdlib/icdb.c +++ b/src/lib/libc/stdlib/icdb.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: icdb.c,v 1.6 2016/05/30 03:06:58 guenther Exp $ */ | 1 | /* $OpenBSD: icdb.c,v 1.7 2016/09/04 14:51:39 nicm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> | 3 | * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> |
4 | * | 4 | * |
@@ -114,7 +114,7 @@ roundup(uint32_t num) | |||
114 | 114 | ||
115 | struct icdb * | 115 | struct icdb * |
116 | icdb_new(uint32_t version, uint32_t nentries, uint32_t entrysize, | 116 | icdb_new(uint32_t version, uint32_t nentries, uint32_t entrysize, |
117 | uint32_t nkeys, uint32_t *keysizes, uint32_t *keyoffsets) | 117 | uint32_t nkeys, const uint32_t *keysizes, const uint32_t *keyoffsets) |
118 | { | 118 | { |
119 | struct icdb *db; | 119 | struct icdb *db; |
120 | struct icdbinfo *info; | 120 | struct icdbinfo *info; |