diff options
| author | Jim Meyering <jim@meyering.net> | 2003-04-11 12:20:35 +0000 |
|---|---|---|
| committer | Jim Meyering <jim@meyering.net> | 2003-04-11 12:20:35 +0000 |
| commit | 58b92bbeb23db76f96843e8a6784940fe0d902b2 (patch) | |
| tree | 00bc3b6883550af46200926702de211820a40b1c /lib/idcache.c | |
| parent | Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values. (diff) | |
| download | coreutils-58b92bbeb23db76f96843e8a6784940fe0d902b2.tar.gz coreutils-58b92bbeb23db76f96843e8a6784940fe0d902b2.zip | |
Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values.
Diffstat (limited to 'lib/idcache.c')
| -rw-r--r-- | lib/idcache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/idcache.c b/lib/idcache.c index 250f1a186..4241d1e12 100644 --- a/lib/idcache.c +++ b/lib/idcache.c @@ -77,7 +77,7 @@ getuser (uid_t uid) return tail->name; pwent = getpwuid (uid); - tail = (struct userid *) xmalloc (sizeof (struct userid)); + tail = xmalloc (sizeof (struct userid)); tail->id.u = uid; tail->name = pwent ? xstrdup (pwent->pw_name) : NULL; @@ -119,7 +119,7 @@ getuidbyname (const char *user) } #endif - tail = (struct userid *) xmalloc (sizeof (struct userid)); + tail = xmalloc (sizeof (struct userid)); tail->name = xstrdup (user); /* Add to the head of the list, so most recently used is first. */ @@ -153,7 +153,7 @@ getgroup (gid_t gid) return tail->name; grent = getgrgid (gid); - tail = (struct userid *) xmalloc (sizeof (struct userid)); + tail = xmalloc (sizeof (struct userid)); tail->id.g = gid; tail->name = grent ? xstrdup (grent->gr_name) : NULL; @@ -195,7 +195,7 @@ getgidbyname (const char *group) } #endif - tail = (struct userid *) xmalloc (sizeof (struct userid)); + tail = xmalloc (sizeof (struct userid)); tail->name = xstrdup (group); /* Add to the head of the list, so most recently used is first. */ |
