From 039e8c5ee8b5e23e6031e241ddf202d2a12db3b7 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Sat, 28 May 2016 10:43:22 +0100 Subject: Fixed an incorrect read() invocation and missing includes for FD_Fail2.c --- test/Runtime/POSIX/FD_Fail2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/Runtime/POSIX/FD_Fail2.c b/test/Runtime/POSIX/FD_Fail2.c index c2e5596b..9d7e358f 100644 --- a/test/Runtime/POSIX/FD_Fail2.c +++ b/test/Runtime/POSIX/FD_Fail2.c @@ -18,7 +18,8 @@ #include #include #include -#include +#include +#include int main(int argc, char** argv) { char buf[1024]; @@ -28,7 +29,7 @@ int main(int argc, char** argv) { int r; - r = read(fd, buf, 1, 5); + r = read(fd, buf, 5); if (r != -1) printf("read() succeeded %u\n", fd); else printf("read() failed with error '%s'\n", strerror(errno)); -- cgit 1.4.1