X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/24c906d3f7f4db31884d4262ddf9824d91ff4a76..54bf456e8584eac5b0afdf8f7e003c79aa87ffe8:/getgroups.c diff --git a/getgroups.c b/getgroups.c index 78e2a88f..3aa152fc 100644 --- a/getgroups.c +++ b/getgroups.c @@ -31,7 +31,8 @@ # define NGROUPS 32 #endif -int main(UNUSED(int argc), UNUSED(char *argv[])) +int +main(UNUSED(int argc), UNUSED(char *argv[])) { int n, i; gid_t list[NGROUPS]; @@ -42,7 +43,7 @@ int main(UNUSED(int argc), UNUSED(char *argv[])) } for (i = 0; i < n; i++) - printf("%u ", list[i]); + printf("%lu ", (unsigned long)list[i]); printf("\n"); return 0;