From de3f8d46e0827137b395e60bbe9a467579976414 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Wed, 9 Jun 2010 13:43:10 -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 de17e13..3132c00 100644 --- a/lustre/liblustre/tests/sanity.c +++ b/lustre/liblustre/tests/sanity.c @@ -705,7 +705,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