diff options
author | Jim Meyering <jim@meyering.net> | 1997-02-02 20:44:10 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-02-02 20:44:10 +0000 |
commit | 1d286acd9a89364a54c09fd1addc8d87142e0bd2 (patch) | |
tree | 0f6f7e1df9296d3aebea423f1ff4f8ee3b5a5da0 /src | |
parent | b63df62ce195d7ec333f21ac18379dc30e5e5297 (diff) | |
download | coreutils-1d286acd9a89364a54c09fd1addc8d87142e0bd2.tar.xz |
(hash_insert2): Rename local HTAB to HT to avoid shadowing global.
Diffstat (limited to 'src')
-rw-r--r-- | src/du.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -111,7 +111,7 @@ char *xmalloc (); char *xrealloc (); static int hash_insert __P ((ino_t ino, dev_t dev)); -static int hash_insert2 __P ((struct htab *htab, ino_t ino, dev_t dev)); +static int hash_insert2 __P ((struct htab *_htab, ino_t ino, dev_t dev)); static long count_entry __P ((char *ent, int top, dev_t last_dev)); static void du_files __P ((char **files)); static void hash_init __P ((unsigned int modulus, @@ -761,10 +761,10 @@ hash_insert (ino_t ino, dev_t dev) already existed. */ static int -hash_insert2 (struct htab *htab, ino_t ino, dev_t dev) +hash_insert2 (struct htab *ht, ino_t ino, dev_t dev) { struct entry **hp, *ep2, *ep; - hp = &htab->hash[ino % htab->modulus]; + hp = &ht->hash[ino % ht->modulus]; ep2 = *hp; /* Collision? */ @@ -787,7 +787,7 @@ hash_insert2 (struct htab *htab, ino_t ino, dev_t dev) } - ep = *hp = &htab->entry_tab[htab->first_free_entry++]; + ep = *hp = &ht->entry_tab[ht->first_free_entry++]; ep->ino = ino; ep->dev = dev; ep->coll_link = ep2; /* `ep2' is NULL if no collision. */ |