diff options
-rw-r--r-- | man3/getgrouplist.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/man3/getgrouplist.3 b/man3/getgrouplist.3 index 41389b6c3..5e11b426b 100644 --- a/man3/getgrouplist.3 +++ b/man3/getgrouplist.3 @@ -142,10 +142,10 @@ ngroups = 3 int main(int argc, char *argv[]) { - int ngroups; - struct passwd *pw; - struct group *gr; - gid_t *groups; + int ngroups; + gid_t *groups; + struct group *gr; + struct passwd *pw; \& if (argc != 3) { fprintf(stderr, "Usage: %s <user> <ngroups>\en", argv[0]); @@ -179,7 +179,7 @@ main(int argc, char *argv[]) /* Display list of retrieved groups, along with group names. */ \& fprintf(stderr, "ngroups = %d\en", ngroups); - for (size_t j = 0; j < ngroups; j++) { + for (int j = 0; j < ngroups; j++) { printf("%d", groups[j]); gr = getgrgid(groups[j]); if (gr != NULL) |