From bfa9e0160a19bd7c151720de78749aa817d5986f Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 10 Jun 2019 22:48:39 +0200 Subject: [PATCH] nss: search: make search_key argument const --- nss/search.c | 2 +- nss/search.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nss/search.c b/nss/search.c index d4f7106..256001f 100644 --- a/nss/search.c +++ b/nss/search.c @@ -50,6 +50,6 @@ static int bsearch_callback(const void *x, const void *y) { } } -uint64_t *search(struct search_key *key, const void *index, uint64_t count) { +uint64_t *search(const struct search_key *key, const void *index, uint64_t count) { return bsearch(key, index, count, sizeof(uint64_t), bsearch_callback); } diff --git a/nss/search.h b/nss/search.h index 9012b49..5a1b52e 100644 --- a/nss/search.h +++ b/nss/search.h @@ -31,6 +31,6 @@ struct search_key { uint64_t offset; }; -uint64_t *search(struct search_key *key, const void *index, uint64_t count) __attribute__((visibility("hidden"))); +uint64_t *search(const struct search_key *key, const void *index, uint64_t count) __attribute__((visibility("hidden"))); #endif -- 2.43.2