id,groups: use gidtostr/uidtostr to avoid casts
commitb663bc8eb0b87c21584b931872db5fd82cf72f49
authorJim Meyering <meyering@redhat.com>
Sun, 1 Jan 2012 21:31:41 +0000 (1 22:31 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 20 May 2012 15:29:32 +0000 (20 17:29 +0200)
tree793fd18deced33ef019c01607af84eb881211985
parent2e9f5ca4ebbbdb6a9fa2dd3d5add3f7720a172d7
id,groups: use gidtostr/uidtostr to avoid casts

* src/id.c (gidtostr, uidtostr): Define macros.
(gidtostr_ptr, uidtostr_ptr): Define safer functions.
Use gidtostr and uidtostr to print GID and UID without
need/risk of casts.
* src/group-list.c: Likewise.
src/group-list.c
src/id.c