summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX/fstat.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-08-10 08:23:01 -0500
committerJoel Sherrill <joel@rtems.org>2018-08-10 08:24:29 -0500
commit382d6537df61d1783985e395b4418324cad1f324 (patch)
treead927aea2ce673f47e6098a1e91194550c56b91c /testsuites/libtests/POSIX/fstat.c
parentbsps/sparc/include/bsp/gradcdac.h: Fix nested comment warning (diff)
downloadrtems-382d6537df61d1783985e395b4418324cad1f324.tar.bz2
libtests/POSIX: Fix warnings and style.
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;
}