diff options
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. */ |