Fix coding style.
Signed-off-by: Wanlong Gao <[email protected]>
---
.../conformance/interfaces/aio_fsync/14-1.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git
a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/14-1.c
b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/14-1.c
index 31cbd0d..a9cd3bf 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/14-1.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_fsync/14-1.c
@@ -38,8 +38,7 @@ int main()
unlink(tmpfname);
fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
S_IRUSR | S_IWUSR);
- if (fd == -1)
- {
+ if (fd == -1) {
printf(TNAME " Error at open(): %s\n",
strerror(errno));
exit(PTS_UNRESOLVED);
@@ -52,8 +51,7 @@ int main()
aiocb_write.aio_buf = buf;
aiocb_write.aio_nbytes = BUF_SIZE;
- if (aio_write(&aiocb_write) == -1)
- {
+ if (aio_write(&aiocb_write) == -1) {
printf(TNAME " Error at aio_write(): %s\n",
strerror(errno));
exit(PTS_FAIL);
@@ -62,19 +60,17 @@ int main()
memset(&aiocb_fsync, 0, sizeof(aiocb_fsync));
aiocb_fsync.aio_fildes = fd;
- if (aio_fsync(-1, &aiocb_fsync) != -1)
- {
+ if (aio_fsync(-1, &aiocb_fsync) != -1) {
printf(TNAME " aio_fsync() accepts bad op\n");
exit(PTS_FAIL);
}
- if (errno != EINVAL)
- {
+ if (errno != EINVAL) {
printf(TNAME " errno is not EINVAL (%d)\n", errno);
exit(PTS_FAIL);
}
close(fd);
- printf ("Test PASSED\n");
+ printf("Test PASSED\n");
return PTS_PASS;
-}
\ No newline at end of file
+}
--
1.7.11.3.287.ge771946
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list