summaryrefslogtreecommitdiff
path: root/src/cp-hash.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-04-27 15:02:11 +0000
committerJim Meyering <jim@meyering.net>2004-04-27 15:02:11 +0000
commita84b7ad221ac7bff15397a4346255641993068be (patch)
tree6af6b5a0f9ce73eaae9246d7e8277307c1108e7a /src/cp-hash.c
parent68c7c2d2fa203a379945cb4201d4d0657e06c029 (diff)
downloadcoreutils-a84b7ad221ac7bff15397a4346255641993068be.tar.xz
(forget_created, remember_created)
(src_to_dest_lookup, remember_copied, hash_init, forget_all): Add `extern' keyword.
Diffstat (limited to 'src/cp-hash.c')
-rw-r--r--src/cp-hash.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cp-hash.c b/src/cp-hash.c
index c9fff7a19..c6c447bc5 100644
--- a/src/cp-hash.c
+++ b/src/cp-hash.c
@@ -83,7 +83,7 @@ src_to_dest_free (void *x)
/* Remove the entry matching INO/DEV from the table
that maps source ino/dev to destination file name. */
-void
+extern void
forget_created (ino_t ino, dev_t dev)
{
struct Src_to_dest probe;
@@ -101,7 +101,7 @@ forget_created (ino_t ino, dev_t dev)
/* Add PATH to the list of files that we have created.
Return 1 if we can't stat PATH, otherwise 0. */
-int
+extern int
remember_created (const char *path)
{
struct stat sb;
@@ -119,7 +119,7 @@ remember_created (const char *path)
/* If INO/DEV correspond to an already-copied source file, return the
name of the corresponding destination file. Otherwise, return NULL. */
-char *
+extern char *
src_to_dest_lookup (ino_t ino, dev_t dev)
{
struct Src_to_dest ent;
@@ -134,7 +134,7 @@ src_to_dest_lookup (ino_t ino, dev_t dev)
to the list of files we have copied.
Return NULL if inserted, otherwise non-NULL. */
-char *
+extern char *
remember_copied (const char *name, ino_t ino, dev_t dev)
{
struct Src_to_dest *ent;
@@ -166,7 +166,7 @@ remember_copied (const char *name, ino_t ino, dev_t dev)
}
/* Initialize the hash table. */
-void
+extern void
hash_init (void)
{
src_to_dest = hash_initialize (INITIAL_TABLE_SIZE, NULL,
@@ -180,7 +180,7 @@ hash_init (void)
/* Reset the hash structure in the global variable `htab' to
contain no entries. */
-void
+extern void
forget_all (void)
{
hash_free (src_to_dest);