X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/9385eb3d10ebe5eb398c52040ec3dbfba9b0cdcf..fc56b708803d28b949a9181528bb0da4d25b3b7b:/stdlib/FreeBSD/strhash.c diff --git a/stdlib/FreeBSD/strhash.c b/stdlib/FreeBSD/strhash.c index 022c45b..1d361b6 100644 --- a/stdlib/FreeBSD/strhash.c +++ b/stdlib/FreeBSD/strhash.c @@ -67,6 +67,9 @@ * */ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wstrict-prototypes" + #include __FBSDID("$FreeBSD: src/lib/libc/stdlib/strhash.c,v 1.10 2002/03/22 21:53:10 obrien Exp $"); @@ -85,6 +88,7 @@ __FBSDID("$FreeBSD: src/lib/libc/stdlib/strhash.c,v 1.10 2002/03/22 21:53:10 obr static int _hash(int size, char *key); static hash_node *list_find(caddr_t key, hash_node *head); +static int assign_key(char *key, hash_node *node); /* @@ -242,8 +246,6 @@ hash_search(hash_table *table, caddr_t key, void *datum, else{ if (datum){ - static int assign_key(); - hash_node *new = (hash_node *)malloc(sizeof(hash_node)); if (!new || !assign_key(key, new)){ @@ -405,3 +407,4 @@ hash_stats(hash_table *table, int verbose) } return; } +#pragma clang diagnostic pop