about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--misc/tst-mntent2.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 62767e5475..df38352cf5 100644
--- 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>
diff --git a/misc/tst-mntent2.c b/misc/tst-mntent2.c
index e61d506cd4..ba1ee0ae19 100644
--- a/misc/tst-mntent2.c
+++ b/misc/tst-mntent2.c
@@ -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;							\