Whamcloud - gitweb
b=22978 fix compiler warning error
[fs/lustre-release.git] / lustre / liblustre / tests / sanity.c
index 736c492..ca41add 100644 (file)
@@ -707,7 +707,7 @@ int t21(char *name)
         }
 
         t_fcntl(fd, F_SETFL, O_APPEND);
-        if (!(ret = t_fcntl(fd, F_GETFL)) & O_APPEND) {
+        if (!((ret = t_fcntl(fd, F_GETFL)) & O_APPEND)) {
                 printf("error get flag: ret %x\n", ret);
                 return(-1);
         }