summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX/dup2.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/POSIX/dup2.c')
-rw-r--r--testsuites/libtests/POSIX/dup2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuites/libtests/POSIX/dup2.c b/testsuites/libtests/POSIX/dup2.c
index b090d63432..2e5238e8aa 100644
--- a/testsuites/libtests/POSIX/dup2.c
+++ b/testsuites/libtests/POSIX/dup2.c
@@ -18,7 +18,5 @@ main (void)
int oldfd = 42;
int newfd = 43;
- dup2 (oldfd, newfd);
-
- return 0;
+ return dup2 (oldfd, newfd);
}