From 6c93bdeeaa8a322b76c48ffc17a2205f6c3f5271 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 11 Apr 2003 10:51:56 +0000 Subject: Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values and of xrealloc's first argument. --- src/cp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cp.c') diff --git a/src/cp.c b/src/cp.c index 1f8a975aa..a8da001a8 100644 --- a/src/cp.c +++ b/src/cp.c @@ -414,7 +414,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 = - (struct dir_attr *) xmalloc (sizeof (struct dir_attr)); + xmalloc (sizeof (struct dir_attr)); new->slash_offset = slash - dirpath; new->next = *attr_list; *attr_list = new; -- cgit v1.2.3-54-g00ecf