Fix warning in misc/tst-mntent2.c.

This commit is contained in:
Torvald Riegel 2014-12-15 22:11:56 +01:00
parent 1469f46696
commit a07c442711
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-12-16 Torvald Riegel <triegel@redhat.com>
* misc/tst-mntent2.c (do_test): Fix warning.
2014-12-16 Torvald Riegel <triegel@redhat.com> 2014-12-16 Torvald Riegel <triegel@redhat.com>
* elf/tst-unique4lib.cc(a): Mark as used. * elf/tst-unique4lib.cc(a): Mark as used.

View File

@ -17,7 +17,7 @@ do_test (void)
mef.mnt_passno = 2; mef.mnt_passno = 2;
#define TEST(opt, found) \ #define TEST(opt, found) \
if (!!hasmntopt (&mef, (opt)) != (found)) \ if ((!!hasmntopt (&mef, (opt))) != (found)) \
{ \ { \
printf ("Option %s was %sfound\n", (opt), (found) ? "not " : ""); \ printf ("Option %s was %sfound\n", (opt), (found) ? "not " : ""); \
result = 1; \ result = 1; \