From 3fd15c21e833f79a478bb25227688aa4e70ee1e7 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Fri, 6 Aug 2010 18:08:59 +0400 Subject: [PATCH] b=22978 fix compiler warning error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix the warning/error: sanity.c: In function ‘t21’: sanity.c:708: error: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’ i=panda i=whitebear --- lustre/liblustre/tests/sanity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/liblustre/tests/sanity.c b/lustre/liblustre/tests/sanity.c index 736c492..ca41add 100644 --- a/lustre/liblustre/tests/sanity.c +++ b/lustre/liblustre/tests/sanity.c @@ -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); } -- 1.8.3.1