mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(make_path_private): Use sizeof *var' rather than sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
This commit is contained in:
1 parent
4265d0095e
commit
e5dda0ab93
1 file changed
+1
-2
@@ -408,8 +408,7 @@ make_path_private (const char *const_dirpath, int src_offset, int mode,
|
||||
{
|
||||
/* Add this directory to the list of directories whose modes need
|
||||
fixing later. */
|
||||
struct dir_attr *new =
|
||||
xmalloc (sizeof (struct dir_attr));
|
||||
struct dir_attr *new = xmalloc (sizeof *new);
|
||||
new->slash_offset = slash - dirpath;
|
||||
new->next = *attr_list;
|
||||
*attr_list = new;
|
||||
|
||||
Reference in new issue
Block a user