summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX/fcntl.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/POSIX/fcntl.c')
-rw-r--r--testsuites/libtests/POSIX/fcntl.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/testsuites/libtests/POSIX/fcntl.c b/testsuites/libtests/POSIX/fcntl.c
index dc59d5db3c..9578df418c 100644
--- a/testsuites/libtests/POSIX/fcntl.c
+++ b/testsuites/libtests/POSIX/fcntl.c
@@ -13,11 +13,14 @@
#include <unistd.h>
#include <fcntl.h>
-int
-main (void)
+int main (void)
{
- fcntl (42, 43);
- fcntl (42, 43, 44);
+ int rc;
- return 0;
+ rc = fcntl (42, 43);
+ (void) rc;
+
+ rc = fcntl (42, 43, 44);
+
+ return rc;
}