X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fhtable%2F_info;h=a3bb76db6bf0395562bfbc96c02e0f9e98e04391;hb=b3cc8ae7c2fe35cf20bd0bac211658c0ecbdbdae;hp=7e06c3867a3f977797720e54368f25cb3084d6c6;hpb=291237b4fed863be74051274ac5ad9920cb33cc3;p=ccan diff --git a/ccan/htable/_info b/ccan/htable/_info index 7e06c386..a3bb76db 100644 --- a/ccan/htable/_info +++ b/ccan/htable/_info @@ -36,6 +36,7 @@ * // Wrapper for rehash function pointer. * static size_t rehash(const void *e, void *unused) * { + * (void)unused; * return hash_string(((struct name_to_digit *)e)->name); * } * @@ -64,7 +65,7 @@ * int main(int argc, char *argv[]) * { * struct htable ht; - * unsigned int i; + * int i; * unsigned long val; * * if (argc < 2) @@ -73,7 +74,7 @@ * * // Create and populate hash table. * htable_init(&ht, rehash, NULL); - * for (i = 0; i < sizeof(map)/sizeof(map[0]); i++) + * for (i = 0; i < (int)(sizeof(map)/sizeof(map[0])); i++) * htable_add(&ht, hash_string(map[i].name), &map[i]); * * // Add any aliases to the hash table.