diff options
author | Christopher Faylor <me@cgf.cx> | 2003-01-24 00:21:28 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-01-24 00:21:28 +0300 |
commit | 9b978ffe8b67bdccd1e0c5bf3ef3c65d60bc6cd3 (patch) | |
tree | 9c1a9a440a79bae5c23602dd05d16645ef4c9419 /winsup/testsuite/winsup.api/mmaptest03.c | |
parent | d8f0f146b8befe92d951c5e5907d41e23f376679 (diff) |
* 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.
Diffstat (limited to 'winsup/testsuite/winsup.api/mmaptest03.c')
-rw-r--r-- | winsup/testsuite/winsup.api/mmaptest03.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <sys/mman.h> #include <sys/wait.h> #include <errno.h> +#include <string.h> /* - 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; |