Fixed compiler warnings

svn path=/trunk/; revision=1025
This commit is contained in:
Eric Kohl 2000-03-03 00:34:54 +00:00
parent ef5b0066c7
commit fd304f0ef5
3 changed files with 8 additions and 3 deletions

View file

@ -11,7 +11,7 @@ DWORD WINAPI thread( LPVOID crap )
return 1; return 1;
} }
int main() int main( void )
{ {
DWORD id, Status; DWORD id, Status;
printf( "Creating events\n" ); printf( "Creating events\n" );

View file

@ -4,8 +4,9 @@
#include <windows.h> #include <windows.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h>
int main() int main( void )
{ {
HANDLE file; HANDLE file;
char buffer[4096]; char buffer[4096];
@ -47,4 +48,6 @@ int main()
} }
printf("Finished\n"); printf("Finished\n");
return 0;
} }

View file

@ -6,7 +6,7 @@
#include <iostream> #include <iostream>
#include <stdlib.h> #include <stdlib.h>
int main() int main( void )
{ {
HANDLE file = CreateFile( "test.dat", GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, 0 ); HANDLE file = CreateFile( "test.dat", GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, 0 );
char buffer[4096]; char buffer[4096];
@ -34,4 +34,6 @@ int main()
exit(3); exit(3);
} }
cout << "Test passed" << endl; cout << "Test passed" << endl;
return 0;
} }