X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/9385eb3d10ebe5eb398c52040ec3dbfba9b0cdcf..e07eda1a0324f771bb1ed20ef94f3229005ee46c:/stdlib/FreeBSD/strhash.c diff --git a/stdlib/FreeBSD/strhash.c b/stdlib/FreeBSD/strhash.c index 022c45b..60cacbd 100644 --- a/stdlib/FreeBSD/strhash.c +++ b/stdlib/FreeBSD/strhash.c @@ -85,6 +85,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 +243,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)){