diff options
-rw-r--r-- | lib/mkdir-p.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/mkdir-p.c b/lib/mkdir-p.c index e970e118d..3923fbee1 100644 --- a/lib/mkdir-p.c +++ b/lib/mkdir-p.c @@ -123,7 +123,7 @@ make_dir_parents (char const *arg, mode_t oldmask = umask (0); /* Make a copy of ARG that we can scribble NULs on. */ - dir = (char *) alloca (strlen (arg) + 1); + dir = alloca (strlen (arg) + 1); strcpy (dir, arg); strip_trailing_slashes (dir); full_dir = dir; @@ -210,8 +210,7 @@ make_dir_parents (char const *arg, if (re_protect) { - struct ptr_list *new = (struct ptr_list *) - alloca (sizeof *new); + struct ptr_list *new = alloca (sizeof *new); new->dirname_end = slash; new->next = leading_dirs; leading_dirs = new; |