summaryrefslogtreecommitdiff
path: root/src/copy.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-11-02 20:17:04 +0000
committerJim Meyering <jim@meyering.net>2003-11-02 20:17:04 +0000
commit4265d0095ef04fde27d001f2819d5604d7e91986 (patch)
treec8a477958d3cc1052ed539f3e1c436f476418ec4 /src/copy.c
parent08fd60e693a2f4d7b1107f7500bef4ed9c32eb5e (diff)
downloadcoreutils-4265d0095ef04fde27d001f2819d5604d7e91986.tar.xz
(copy_internal): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
Diffstat (limited to 'src/copy.c')
-rw-r--r--src/copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/copy.c b/src/copy.c
index 392a45064..2ccba222a 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -1306,7 +1306,7 @@ copy_internal (const char *src_path, const char *dst_path,
/* Insert the current directory in the list of parents. */
- dir = alloca (sizeof (struct dir_list));
+ dir = alloca (sizeof *dir);
dir->parent = ancestors;
dir->ino = src_sb.st_ino;
dir->dev = src_sb.st_dev;