# HG changeset patch # User Jim Meyering # Date 1302420622 -7200 # Node ID 9633c7e65d4028969c6a41f1fdc05e6335239e40 # Parent 47093ce3cd1b884bdf91cbe5081bd6947e2144b0 test-chown.h: correct a cast * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t) when the destination is a stat.st_gid. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-04-10 Jim Meyering + + test-chown.h: correct a cast + * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t) + when the destination is a stat.st_gid. + 2011-04-09 Mats Erik Andersson (tiny change) getaddrinfo: Fix test for sa_len member. diff --git a/tests/test-chown.h b/tests/test-chown.h --- a/tests/test-chown.h +++ b/tests/test-chown.h @@ -71,7 +71,7 @@ ASSERT (close (creat (BASE "dir/file", 0600)) == 0); ASSERT (stat (BASE "dir/file", &st1) == 0); ASSERT (st1.st_uid != (uid_t) -1); - ASSERT (st1.st_gid != (uid_t) -1); + ASSERT (st1.st_gid != (gid_t) -1); ASSERT (st1.st_gid == getegid ()); /* Sanity check of error cases. */