diff options
author | Jim Meyering <meyering@redhat.com> | 2011-04-10 09:30:22 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-04-10 09:30:22 +0200 |
commit | 5e29a7a095a6c960115cf48f5b28278194a0b2ca (patch) | |
tree | 586043b6889c3309b3b0d7ded484779500674ed5 /tests | |
parent | 79e567ff014d17dbeaff94735457096657b2ea53 (diff) | |
download | gnulib-5e29a7a095a6c960115cf48f5b28278194a0b2ca.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-chown.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-chown.h b/tests/test-chown.h index 7630de48da..c99ffc1d05 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. */ |