diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2002-03-21 18:49:23 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2002-03-21 18:49:23 +0000 |
| commit | 8fb3f3f68288ae2b1b53dd65e3dd673d83c80f4c (patch) | |
| tree | 12b252b7426e8a8904ef257bea10fea6038142f4 /lib/libc/stdlib/strhash.c | |
| parent | ddf23aa842f17afcb0e9bfd88bfad20f6431d0a3 (diff) | |
Notes
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; |
