summaryrefslogtreecommitdiff
path: root/src/cp-hash.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-04-06 08:15:29 +0000
committerJim Meyering <jim@meyering.net>1998-04-06 08:15:29 +0000
commit7b9c4d3d0321042f61f0d188797fe2844027b507 (patch)
tree5ffacda208a9118b21f0981563d9e88e064da782 /src/cp-hash.c
parent3783d6be57193beb47341699a3c80ddd05ce2c98 (diff)
downloadcoreutils-7b9c4d3d0321042f61f0d188797fe2844027b507.tar.xz
(cph_hash_insert): Rename from now-conflicting hash_insert.
Also declare to be static.
Diffstat (limited to 'src/cp-hash.c')
-rw-r--r--src/cp-hash.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cp-hash.c b/src/cp-hash.c
index fd7e44394..e48d81e4d 100644
--- a/src/cp-hash.c
+++ b/src/cp-hash.c
@@ -48,6 +48,8 @@ struct htab
struct htab *htab;
char new_file;
+static char *cph_hash_insert PARAMS ((ino_t ino, dev_t dev, const char *node));
+
/* Add PATH to the list of files that we have created.
Return 0 if successful, 1 if not. */
@@ -62,7 +64,7 @@ remember_created (const char *path)
return 1;
}
- hash_insert (sb.st_ino, sb.st_dev, &new_file);
+ cph_hash_insert (sb.st_ino, sb.st_dev, &new_file);
return 0;
}
@@ -73,7 +75,7 @@ remember_created (const char *path)
char *
remember_copied (const char *node, ino_t ino, dev_t dev)
{
- return hash_insert (ino, dev, node);
+ return cph_hash_insert (ino, dev, node);
}
/* Allocate space for the hash structures, and set the global
@@ -165,8 +167,8 @@ hash_insert2 (struct htab *ht, ino_t ino, dev_t dev, const char *node)
the same inode and device was not found already.
Return NULL if inserted, otherwise non-NULL. */
-char *
-hash_insert (ino_t ino, dev_t dev, const char *node)
+static char *
+cph_hash_insert (ino_t ino, dev_t dev, const char *node)
{
struct htab *htab_r = htab;