X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fsparse_bsearch%2F_info;h=eb1e735a1e93efefa140d5273b9d87c0f5f278ab;hp=7d7164f04dff4a22bf9fbae2f94f5365ab4733ca;hb=291237b4fed863be74051274ac5ad9920cb33cc3;hpb=faace1758e31f87ee2032cc04c6bb41e3cf8f12e diff --git a/ccan/sparse_bsearch/_info b/ccan/sparse_bsearch/_info index 7d7164f0..eb1e735a 100644 --- a/ccan/sparse_bsearch/_info +++ b/ccan/sparse_bsearch/_info @@ -1,6 +1,6 @@ +#include "config.h" #include #include -#include "config.h" /** * sparse_bsearch - search a sorted array with some invalid entries @@ -15,7 +15,7 @@ * Example: * #include * - * static bool val_valid(unsigned int *val) + * static bool val_valid(const unsigned int *val) * { * return *val != 0; * } @@ -26,7 +26,7 @@ * static unsigned int values[] = { 1, 7, 11, 1235, 99999 }; * * // Return true if this value is in set, and remove it. - * bool remove_from_values(unsigned int val) + * static bool remove_from_values(unsigned int val) * { * unsigned int *p; * // We use 5 here, but ccan/array_size.h is better! @@ -50,7 +50,7 @@ * return 0; * } * - * Licence: LGPL (2 or any later version) + * License: LGPL (v2.1 or any later version) * Author: Rusty Russell */ int main(int argc, char *argv[])