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;
}
#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. */
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;
}
#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. */