When comparing -1 to a group id, cast -1 with gid_t because on some systems
[rsync/rsync.git] / uidlist.c
index e4b61b8..14611a5 100644 (file)
--- a/uidlist.c
+++ b/uidlist.c
@@ -126,7 +126,7 @@ static gid_t match_gid(gid_t gid)
        if (am_root)
                last_out = gid;
        else
-               last_out = -1;
+               last_out = (gid_t) -1;
        return last_out;
 }