summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-11-22 12:25:09 +0000
committerJim Meyering <jim@meyering.net>2001-11-22 12:25:09 +0000
commit7a0fd15ee723c798733dc28a1211c8c3056a3c82 (patch)
tree5056a6801082f2a96646e7b09d55bc26fb4fd4ca /src
parent31bfafc32e79575eb4cc9215f0fcd8652448476c (diff)
downloadcoreutils-7a0fd15ee723c798733dc28a1211c8c3056a3c82.tar.xz
(seen_file): Change type of `stats' parameter to pointer.
(copy_internal): Update caller.
Diffstat (limited to 'src')
-rw-r--r--src/copy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/copy.c b/src/copy.c
index 01f5d1ee2..1f8770f74 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -632,7 +632,7 @@ dest_info_init (struct cp_options *x)
Otherwise, return zero. */
static int
seen_file (Hash_table const *ht, char const *filename,
- struct stat stats)
+ struct stat const *stats)
{
struct F_triple new_ent;
@@ -640,8 +640,8 @@ seen_file (Hash_table const *ht, char const *filename,
return 0;
new_ent.name = filename;
- new_ent.st_ino = stats.st_ino;
- new_ent.st_dev = stats.st_dev;
+ new_ent.st_ino = stats->st_ino;
+ new_ent.st_dev = stats->st_dev;
return !!hash_lookup (ht, &new_ent);
}
@@ -836,7 +836,7 @@ copy_internal (const char *src_path, const char *dst_path,
Note that it works fine if you use --backup=numbered. */
if (command_line_arg
&& x->backup_type != numbered
- && seen_file (x->dest_info, dst_path, dst_sb))
+ && seen_file (x->dest_info, dst_path, &dst_sb))
{
error (0, 0,
_("will not overwrite just-created %s with %s"),