From 9b978ffe8b67bdccd1e0c5bf3ef3c65d60bc6cd3 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 23 Jan 2003 21:21:28 +0000 Subject: * libltp/include/test.h: Fix C warnings. * winsup.api/checksignal.c: Ditto. * winsup.api/crlf.c: Ditto. * winsup.api/devzero.c: Ditto. * winsup.api/iospeed.c: Ditto. * winsup.api/mmaptest01.c: Ditto. * winsup.api/mmaptest02.c: Ditto. * winsup.api/mmaptest03.c: Ditto. * winsup.api/mmaptest04.c: Ditto. * winsup.api/nullgetcwd.c: Ditto. * winsup.api/sigchld.c: Ditto. * winsup.api/signal-into-win32-api.c: Ditto. * winsup.api/systemcall.c: Ditto. * winsup.api/waitpid.c: Ditto. * winsup.api/pthread/mainthreadexits.c: Ditto. * winsup.api/pthread/test.h: Ditto. * winsup.api/pthread/threadidafterfork.c: Ditto. * Makefile.in: Remove cygrun.exe from RUNTIME since it is built here now. --- winsup/testsuite/winsup.api/mmaptest03.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'winsup/testsuite/winsup.api/mmaptest03.c') diff --git a/winsup/testsuite/winsup.api/mmaptest03.c b/winsup/testsuite/winsup.api/mmaptest03.c index 544e3e43c..5c871dbf2 100644 --- a/winsup/testsuite/winsup.api/mmaptest03.c +++ b/winsup/testsuite/winsup.api/mmaptest03.c @@ -8,6 +8,7 @@ #include #include #include +#include /* - Checks if mapping of already closed file survives fork() - Checks if mapping the same region of the same file twice @@ -21,7 +22,7 @@ jmp_buf r; char const line[] = "y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1 y1"; void -perror_exit (char *str) +perror_exit (const char *str) { printf ("%s: %s\n", str, strerror (errno)); exit (1); @@ -37,7 +38,7 @@ sigsegv (int unused) int main(int argc, char **argv) { - int i, fd, status; + int fd, status; struct stat statbuf; char c, *buf1, *buf2; pid_t pid; -- cgit v1.2.3