Changed main() definition to avoid an extra prototype being put
[rsync/rsync.git] / getgroups.c
index 7d681d1..b3202c3 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];