From: Jim Meyering Date: Sun, 10 Apr 2011 07:30:22 +0000 (+0200) Subject: test-chown.h: correct a cast X-Git-Tag: v0.1~2957 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=5e29a7a095a6c960115cf48f5b28278194a0b2ca;p=gnulib.git 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 index 3d8a1f72a..c1eede550 100644 --- 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 index 7630de48d..c99ffc1d0 100644 --- a/tests/test-chown.h +++ b/tests/test-chown.h @@ -71,7 +71,7 @@ test_chown (int (*func) (char const *, uid_t, gid_t), bool print) 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. */