]> ruderich.org/simon Gitweb - nsscash/nsscash.git/commitdiff
nss: search: make search_key argument const
authorSimon Ruderich <simon@ruderich.org>
Mon, 10 Jun 2019 20:48:39 +0000 (22:48 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 10 Jun 2019 20:48:39 +0000 (22:48 +0200)
nss/search.c
nss/search.h

index d4f71068003e88c487f4b0c909b441e43330217e..256001f16e1d19ac4b03706a81dee8266859ffc6 100644 (file)
@@ -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);
 }
     return bsearch(key, index, count, sizeof(uint64_t), bsearch_callback);
 }
index 9012b49d29598ef7eb51d653dff4690af2841109..5a1b52e59a524accca32b966d9f421d17ea930f8 100644 (file)
@@ -31,6 +31,6 @@ struct search_key {
     uint64_t offset;
 };
 
     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
 
 #endif