aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/tst-fileno.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/tst-fileno.c')
-rw-r--r--stdio-common/tst-fileno.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/stdio-common/tst-fileno.c b/stdio-common/tst-fileno.c
index 79c768d732..3cc37a9876 100644
--- a/stdio-common/tst-fileno.c
+++ b/stdio-common/tst-fileno.c
@@ -24,14 +24,15 @@ static int
check (const char *name, FILE *stream, int fd)
{
int sfd = fileno (stream);
- printf ("(fileno (%s) = %d) %c= %d\n", name, sfd, sfd == fd ? '=' : '!', fd);
+ printf ("(fileno (%s) = %d) %c= %d\n", name, sfd,
+ sfd == fd ? '=' : '!', fd);
return sfd != fd;
}
int
main (void)
{
- exit (check ("stdin", stdin, STDIN_FILENO) ||
- check ("stdout", stdout, STDOUT_FILENO) ||
- check ("stderr", stderr, STDERR_FILENO));
+ return (check ("stdin", stdin, STDIN_FILENO) ||
+ check ("stdout", stdout, STDOUT_FILENO) ||
+ check ("stderr", stderr, STDERR_FILENO));
}