diff options
Diffstat (limited to 'lib/libc/stdlib/strhash.c')
| -rw-r--r-- | lib/libc/stdlib/strhash.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/stdlib/strhash.c b/lib/libc/stdlib/strhash.c index 8de4f3f14436..8da906421405 100644 --- a/lib/libc/stdlib/strhash.c +++ b/lib/libc/stdlib/strhash.c @@ -100,7 +100,7 @@ static hash_node *list_find(caddr_t key, hash_node *head); hash_table * hash_create(int size) { - register int i; + int i; hash_table *new = (hash_table *)malloc(sizeof(hash_table)); if (!new || size < 0){ @@ -293,8 +293,8 @@ assign_key(char *key, hash_node *node) void hash_traverse(hash_table *table, int (*func)(), void *arg) { - register int i; - register int size = table->size; + int i; + int size = table->size; if (!func) return; @@ -320,8 +320,8 @@ hash_traverse(hash_table *table, int (*func)(), void *arg) void hash_purge(hash_table *table, void (*purge_func)(char *p1, void *p2)) { - register int i; - register int size = table->size; + int i; + int size = table->size; for (i = 0; i < size; i++) { hash_node *n = table->buckets[i]; @@ -350,7 +350,7 @@ hash_purge(hash_table *table, void (*purge_func)(char *p1, void *p2)) void hash_stats(hash_table *table, int verbose) { - register int i; + int i; int total_elements = 0; int non_empty_buckets = 0; int max_count = 0; |
