Mercurial > hg > octave-shane > gnulib-hg
changeset 14568:9633c7e65d40
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.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sun, 10 Apr 2011 09:30:22 +0200 |
parents | 47093ce3cd1b |
children | ea9f5df77acd |
files | ChangeLog tests/test-chown.h |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-04-10 Jim Meyering <meyering@redhat.com> + + 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 <mats.andersson@gisladisker.se> (tiny change) getaddrinfo: Fix test for sa_len member.
--- 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. */