summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX/fstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/POSIX/fstat.c')
-rw-r--r--testsuites/libtests/POSIX/fstat.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/testsuites/libtests/POSIX/fstat.c b/testsuites/libtests/POSIX/fstat.c
index 29c38d6eae..2798365dfd 100644
--- a/testsuites/libtests/POSIX/fstat.c
+++ b/testsuites/libtests/POSIX/fstat.c
@@ -14,12 +14,13 @@
#include <sys/stat.h>
#include <unistd.h>
-int
-main (void)
+int main (void)
{
struct stat buf;
int fd = 42;
- fstat (fd, &buf);
+ int rc;
- return 0;
+ rc = fstat(fd, &buf);
+
+ return rc;
}