* 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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user