(copy_internal): Use sizeof *var' rather than sizeof EXPLICIT_TYPE'.

The former is more maintainable and usually shorter.
This commit is contained in:
Jim Meyering committed 2003-11-02 20:17:04 +00:00
1 parent 08fd60e693
commit 4265d0095e
1 file changed
+1 -1
+1 -1
View File
@@ -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;