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/id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/id.c') diff --git a/src/id.c b/src/id.c index bb5e0cafd..9d4b28668 100644 --- a/src/id.c +++ b/src/id.c @@ -262,7 +262,7 @@ xgetgroups (const char *username, gid_t gid, int *n_groups, max_n_groups = getugroups (0, NULL, username, gid); /* Add 1 just in case max_n_groups is zero. */ - g = (GETGROUPS_T *) xmalloc (max_n_groups * sizeof (GETGROUPS_T) + 1); + g = xmalloc (max_n_groups * sizeof (GETGROUPS_T) + 1); if (username == 0) ng = getgroups (max_n_groups, g); else -- cgit v1.2.3-54-g00ecf