summaryrefslogtreecommitdiff
path: root/lib/idcache.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-29 21:24:44 +0000
committerJim Meyering <jim@meyering.net>2005-06-29 21:24:44 +0000
commiteb231be3d66f808b3791eac37a5965bdb4d5fdde (patch)
tree438fc1434029814507a095fc279e71d3f39c1a51 /lib/idcache.c
parent2639d24e522fa93462b7970500861f2f2c1b51bd (diff)
downloadcoreutils-eb231be3d66f808b3791eac37a5965bdb4d5fdde.tar.xz
(getuser, getuidbyname, getgroup, getgidbyname): Likewise.
Diffstat (limited to 'lib/idcache.c')
-rw-r--r--lib/idcache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/idcache.c b/lib/idcache.c
index b3de8bbaf..82dec8d90 100644
--- a/lib/idcache.c
+++ b/lib/idcache.c
@@ -66,7 +66,7 @@ getuser (uid_t uid)
return tail->name;
pwent = getpwuid (uid);
- tail = xmalloc (sizeof (struct userid));
+ tail = xmalloc (sizeof *tail);
tail->id.u = uid;
tail->name = pwent ? xstrdup (pwent->pw_name) : NULL;
@@ -108,7 +108,7 @@ getuidbyname (const char *user)
}
#endif
- tail = xmalloc (sizeof (struct userid));
+ tail = xmalloc (sizeof *tail);
tail->name = xstrdup (user);
/* Add to the head of the list, so most recently used is first. */
@@ -142,7 +142,7 @@ getgroup (gid_t gid)
return tail->name;
grent = getgrgid (gid);
- tail = xmalloc (sizeof (struct userid));
+ tail = xmalloc (sizeof *tail);
tail->id.g = gid;
tail->name = grent ? xstrdup (grent->gr_name) : NULL;
@@ -184,7 +184,7 @@ getgidbyname (const char *group)
}
#endif
- tail = xmalloc (sizeof (struct userid));
+ tail = xmalloc (sizeof *tail);
tail->name = xstrdup (group);
/* Add to the head of the list, so most recently used is first. */