From 4265d0095ef04fde27d001f2819d5604d7e91986 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 2 Nov 2003 20:17:04 +0000 Subject: (copy_internal): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'. The former is more maintainable and usually shorter. --- src/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf