KERNEL32: fix declaration warnings in the test cases
Mike McCormack
mike at codeweavers.com
Mon Jun 13 23:05:35 CDT 2005
ChangeLog:
* fix declaration warnings in the test cases
-------------- next part --------------
Index: dlls/kernel/tests/profile.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/profile.c,v
retrieving revision 1.7
diff -u -p -r1.7 profile.c
--- dlls/kernel/tests/profile.c 4 Mar 2005 10:46:55 -0000 1.7
+++ dlls/kernel/tests/profile.c 14 Jun 2005 04:06:36 -0000
@@ -89,7 +89,7 @@ static void test_profile_int(void)
DeleteFileA( TESTFILE);
}
-void test_profile_string()
+static void test_profile_string(void)
{
HANDLE h;
int ret;
Index: dlls/kernel/tests/thread.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/thread.c,v
retrieving revision 1.20
diff -u -p -r1.20 thread.c
--- dlls/kernel/tests/thread.c 25 Mar 2005 10:25:11 -0000 1.20
+++ dlls/kernel/tests/thread.c 14 Jun 2005 04:06:36 -0000
@@ -86,7 +86,7 @@ typedef struct {
that the thread local storage routines work correctly, and that
threads actually run concurrently
*/
-DWORD WINAPI threadFunc1(LPVOID p)
+static DWORD WINAPI threadFunc1(LPVOID p)
{
t1Struct *tstruct = (t1Struct *)p;
int i;
@@ -111,12 +111,12 @@ DWORD WINAPI threadFunc1(LPVOID p)
return NUM_THREADS+tstruct->threadnum;
}
-DWORD WINAPI threadFunc2(LPVOID p)
+static DWORD WINAPI threadFunc2(LPVOID p)
{
return 99;
}
-DWORD WINAPI threadFunc3(LPVOID p)
+static DWORD WINAPI threadFunc3(LPVOID p)
{
HANDLE thread;
thread=GetCurrentThread();
@@ -124,7 +124,7 @@ DWORD WINAPI threadFunc3(LPVOID p)
return 99;
}
-DWORD WINAPI threadFunc4(LPVOID p)
+static DWORD WINAPI threadFunc4(LPVOID p)
{
HANDLE event = (HANDLE)p;
if(event != NULL) {
@@ -135,7 +135,7 @@ DWORD WINAPI threadFunc4(LPVOID p)
}
#if CHECK_STACK
-DWORD WINAPI threadFunc5(LPVOID p)
+static DWORD WINAPI threadFunc5(LPVOID p)
{
DWORD *exitCode = (DWORD *)p;
SYSTEM_INFO sysInfo;
@@ -155,7 +155,7 @@ DWORD WINAPI threadFunc5(LPVOID p)
#endif
/* Check basic funcationality of CreateThread and Tls* functions */
-VOID test_CreateThread_basic(void)
+static VOID test_CreateThread_basic(void)
{
HANDLE thread[NUM_THREADS],event[NUM_THREADS];
DWORD threadid[NUM_THREADS],curthreadId;
@@ -217,7 +217,7 @@ VOID test_CreateThread_basic(void)
}
/* Check that using the CREATE_SUSPENDED flag works */
-VOID test_CreateThread_suspended(void)
+static VOID test_CreateThread_suspended(void)
{
HANDLE thread;
DWORD threadId;
@@ -246,7 +246,7 @@ VOID test_CreateThread_suspended(void)
}
/* Check that SuspendThread and ResumeThread work */
-VOID test_SuspendThread(void)
+static VOID test_SuspendThread(void)
{
HANDLE thread,access_thread;
DWORD threadId,exitCode,error;
@@ -303,7 +303,7 @@ VOID test_SuspendThread(void)
/* Check that TerminateThread works properly
*/
-VOID test_TerminateThread(void)
+static VOID test_TerminateThread(void)
{
HANDLE thread,access_thread,event;
DWORD threadId,exitCode;
@@ -342,7 +342,7 @@ VOID test_TerminateThread(void)
/* Check if CreateThread obeys the specified stack size. This code does
not work properly, and is currently disabled
*/
-VOID test_CreateThread_stack(void)
+static VOID test_CreateThread_stack(void)
{
#if CHECK_STACK
/* The only way I know of to test the stack size is to use alloca
@@ -369,7 +369,7 @@ VOID test_CreateThread_stack(void)
}
/* Check whether setting/retrieving thread priorities works */
-VOID test_thread_priority(void)
+static VOID test_thread_priority(void)
{
HANDLE curthread,access_thread;
DWORD curthreadId,exitCode;
@@ -455,7 +455,7 @@ VOID test_thread_priority(void)
}
/* check the GetThreadTimes function */
-VOID test_GetThreadTimes(void)
+static VOID test_GetThreadTimes(void)
{
HANDLE thread,access_thread=NULL;
FILETIME creationTime,exitTime,kernelTime,userTime;
@@ -506,7 +506,7 @@ VOID test_GetThreadTimes(void)
/* Check the processor affinity functions */
/* NOTE: These functions should also be checked that they obey access control
*/
-VOID test_thread_processor(void)
+static VOID test_thread_processor(void)
{
HANDLE curthread,curproc;
DWORD processMask,systemMask;
Index: dlls/kernel/tests/time.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/time.c,v
retrieving revision 1.9
diff -u -p -r1.9 time.c
--- dlls/kernel/tests/time.c 28 Mar 2005 10:00:25 -0000 1.9
+++ dlls/kernel/tests/time.c 14 Jun 2005 04:06:36 -0000
@@ -75,7 +75,7 @@
-static void test_conversions()
+static void test_conversions(void)
{
FILETIME ft;
SYSTEMTIME st;
@@ -116,7 +116,7 @@ static void test_conversions()
}
-static void test_invalid_arg()
+static void test_invalid_arg(void)
{
FILETIME ft;
SYSTEMTIME st;
@@ -154,7 +154,7 @@ static void test_invalid_arg()
ok( !SystemTimeToFileTime(&st, &ft), "bad minute\n");
}
-void test_GetTimeZoneInformation()
+static void test_GetTimeZoneInformation(void)
{
TIME_ZONE_INFORMATION tzinfo, tzinfo1;
DWORD res = GetTimeZoneInformation(&tzinfo);
@@ -173,7 +173,7 @@ void test_GetTimeZoneInformation()
}
-void test_FileTimeToSystemTime()
+static void test_FileTimeToSystemTime(void)
{
FILETIME ft;
SYSTEMTIME st;
@@ -203,7 +203,7 @@ void test_FileTimeToSystemTime()
st.wMilliseconds);
}
-void test_FileTimeToLocalFileTime()
+static void test_FileTimeToLocalFileTime(void)
{
FILETIME ft, lft;
SYSTEMTIME st;
@@ -260,7 +260,7 @@ typedef struct {
WORD ehour; /* expected hour */
} TZLT2ST_case;
-void test_TzSpecificLocalTimeToSystemTime()
+static void test_TzSpecificLocalTimeToSystemTime(void)
{
HMODULE hKernel = GetModuleHandle("kernel32");
fnTzSpecificLocalTimeToSystemTime pTzSpecificLocalTimeToSystemTime;
Index: dlls/kernel/tests/timer.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/timer.c,v
retrieving revision 1.2
diff -u -p -r1.2 timer.c
--- dlls/kernel/tests/timer.c 8 Sep 2004 19:06:07 -0000 1.2
+++ dlls/kernel/tests/timer.c 14 Jun 2005 04:06:36 -0000
@@ -27,7 +27,7 @@ typedef HANDLE (WINAPI *fnCreateWaitable
typedef BOOL (WINAPI *fnSetWaitableTimer)(HANDLE, LARGE_INTEGER*, LONG, PTIMERAPCROUTINE, LPVOID, BOOL);
-void test_timer(void)
+static void test_timer(void)
{
HMODULE hker = GetModuleHandle("kernel32");
fnCreateWaitableTimerA pCreateWaitableTimerA;
More information about the wine-patches
mailing list