Fix warning in misc/tst-mntent2.c.
authorTorvald Riegel <triegel@redhat.com>
Mon, 15 Dec 2014 21:11:56 +0000 (22:11 +0100)
committerTorvald Riegel <triegel@redhat.com>
Tue, 16 Dec 2014 09:27:16 +0000 (10:27 +0100)
ChangeLog
misc/tst-mntent2.c

index 62767e5..df38352 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-12-16  Torvald Riegel  <triegel@redhat.com>
 
+       * misc/tst-mntent2.c (do_test): Fix warning.
+
+2014-12-16  Torvald Riegel  <triegel@redhat.com>
+
        * elf/tst-unique4lib.cc(a): Mark as used.
 
 2014-12-16  Florian Weimer  <fweimer@redhat.com>
index e61d506..ba1ee0a 100644 (file)
@@ -17,7 +17,7 @@ do_test (void)
   mef.mnt_passno = 2;
 
 #define TEST(opt, found) \
-  if (!!hasmntopt (&mef, (opt)) != (found))                            \
+  if ((!!hasmntopt (&mef, (opt))) != (found))                          \
     {                                                                  \
       printf ("Option %s was %sfound\n", (opt), (found) ? "not " : "");        \
       result = 1;                                                      \