From: Brian J. Murrell Date: Wed, 9 Jun 2010 17:43:10 +0000 (-0400) Subject: b=22978 fix compiler warning error X-Git-Tag: v1_8_3_54~30 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=de3f8d46e0827137b395e60bbe9a467579976414;p=fs%2Flustre-release.git b=22978 fix compiler warning error 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 --- 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); }