-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
}
t_fcntl(fd, F_SETFL, O_APPEND);
- if (!((ret = t_fcntl(fd, F_GETFL)) & O_APPEND)) {
- printf("error get flag: ret %x\n", ret);
+ ret = t_fcntl(fd, F_GETFL);
+ if ((ret & O_APPEND) == 0) {
+ printf("error get flag: ret %o\n", ret);
return(-1);
}