mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(copy_internal): Use sizeof *var' rather than sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
This commit is contained in:
1 parent
08fd60e693
commit
4265d0095e
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user