* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
}
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;
}