Removed an obsolete comment.
[rsync/rsync.git] / getgroups.c
index 7d681d1..3aa152f 100644 (file)
 
 #include "rsync.h"
 
-int main(int argc, char *argv[])
+#ifndef NGROUPS
+/* It ought to be defined, but just in case. */
+#  define NGROUPS 32
+#endif
+
+int
+main(UNUSED(int argc), UNUSED(char *argv[]))
 {
        int n, i;
        gid_t list[NGROUPS];
@@ -37,7 +43,7 @@ int main(int argc, char *argv[])
        }
 
        for (i = 0; i < n; i++) 
-               printf("%u ", list[i]);
+               printf("%lu ", (unsigned long)list[i]);
        printf("\n");
                
        return 0;