summaryrefslogtreecommitdiff
path: root/src/du.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-02-02 20:44:10 +0000
committerJim Meyering <jim@meyering.net>1997-02-02 20:44:10 +0000
commit1d286acd9a89364a54c09fd1addc8d87142e0bd2 (patch)
tree0f6f7e1df9296d3aebea423f1ff4f8ee3b5a5da0 /src/du.c
parentb63df62ce195d7ec333f21ac18379dc30e5e5297 (diff)
downloadcoreutils-1d286acd9a89364a54c09fd1addc8d87142e0bd2.tar.xz
(hash_insert2): Rename local HTAB to HT to avoid shadowing global.
Diffstat (limited to 'src/du.c')
-rw-r--r--src/du.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/du.c b/src/du.c
index 7e597bfa1..ac81160c5 100644
--- a/src/du.c
+++ b/src/du.c
@@ -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. */