diff options
author | Joel Sherrill <joel@rtems.org> | 2018-08-10 08:23:01 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2018-08-10 08:24:29 -0500 |
commit | 382d6537df61d1783985e395b4418324cad1f324 (patch) | |
tree | ad927aea2ce673f47e6098a1e91194550c56b91c /testsuites/libtests/POSIX/fstat.c | |
parent | bsps/sparc/include/bsp/gradcdac.h: Fix nested comment warning (diff) | |
download | rtems-382d6537df61d1783985e395b4418324cad1f324.tar.bz2 |
libtests/POSIX: Fix warnings and style.
Diffstat (limited to 'testsuites/libtests/POSIX/fstat.c')
-rw-r--r-- | testsuites/libtests/POSIX/fstat.c | 9 |
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; } |