From 302b8234a28a27b14150b0df1427aa3733d72a1a Mon Sep 17 00:00:00 2001 From: walter Date: Fri, 6 Nov 2009 18:07:44 +0000 Subject: [PATCH] b=21281 o=walter (walter@routingdynamics.com) i=johann i=grev gcc-4.4.0 RHEL-5.3 x86_64 build error fix --- lustre/tests/flocks_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/flocks_test.c b/lustre/tests/flocks_test.c index 97890d8..f3feac6 100644 --- a/lustre/tests/flocks_test.c +++ b/lustre/tests/flocks_test.c @@ -240,7 +240,8 @@ int t2(int argc, char* argv[]) } t_fcntl(fd, F_SETFL, O_APPEND); - if (!(rc = t_fcntl(fd, F_GETFL)) & O_APPEND) { + rc = t_fcntl(fd, F_GETFL); + if ((rc & O_APPEND) == 0) { fprintf(stderr, "error get flag: ret %x\n", rc); return EXIT_FAILURE; } -- 1.8.3.1