Commit 9213d56a authored by Stefan Huehner's avatar Stefan Huehner Committed by Alexandre Julliard

Make some function static.

parent ddf70d7e
...@@ -100,7 +100,7 @@ HRESULT WINAPI enummodescallback(LPDDSURFACEDESC lpddsd, LPVOID lpContext) ...@@ -100,7 +100,7 @@ HRESULT WINAPI enummodescallback(LPDDSURFACEDESC lpddsd, LPVOID lpContext)
return DDENUMRET_OK; return DDENUMRET_OK;
} }
void enumdisplaymodes(void) static void enumdisplaymodes(void)
{ {
DDSURFACEDESC ddsd; DDSURFACEDESC ddsd;
HRESULT rc; HRESULT rc;
......
...@@ -277,7 +277,7 @@ static void testGetIpForwardTable(void) ...@@ -277,7 +277,7 @@ static void testGetIpForwardTable(void)
} }
} }
void testGetIpNetTable(void) static void testGetIpNetTable(void)
{ {
if (gGetIpNetTable) { if (gGetIpNetTable) {
DWORD apiReturn; DWORD apiReturn;
...@@ -307,7 +307,7 @@ void testGetIpNetTable(void) ...@@ -307,7 +307,7 @@ void testGetIpNetTable(void)
} }
} }
void testGetIcmpStatistics(void) static void testGetIcmpStatistics(void)
{ {
if (gGetIcmpStatistics) { if (gGetIcmpStatistics) {
DWORD apiReturn; DWORD apiReturn;
...@@ -325,7 +325,7 @@ void testGetIcmpStatistics(void) ...@@ -325,7 +325,7 @@ void testGetIcmpStatistics(void)
} }
} }
void testGetIpStatistics(void) static void testGetIpStatistics(void)
{ {
if (gGetIpStatistics) { if (gGetIpStatistics) {
DWORD apiReturn; DWORD apiReturn;
...@@ -343,7 +343,7 @@ void testGetIpStatistics(void) ...@@ -343,7 +343,7 @@ void testGetIpStatistics(void)
} }
} }
void testGetTcpStatistics(void) static void testGetTcpStatistics(void)
{ {
if (gGetTcpStatistics) { if (gGetTcpStatistics) {
DWORD apiReturn; DWORD apiReturn;
...@@ -361,7 +361,7 @@ void testGetTcpStatistics(void) ...@@ -361,7 +361,7 @@ void testGetTcpStatistics(void)
} }
} }
void testGetUdpStatistics(void) static void testGetUdpStatistics(void)
{ {
if (gGetUdpStatistics) { if (gGetUdpStatistics) {
DWORD apiReturn; DWORD apiReturn;
...@@ -379,7 +379,7 @@ void testGetUdpStatistics(void) ...@@ -379,7 +379,7 @@ void testGetUdpStatistics(void)
} }
} }
void testGetTcpTable(void) static void testGetTcpTable(void)
{ {
if (gGetTcpTable) { if (gGetTcpTable) {
DWORD apiReturn; DWORD apiReturn;
...@@ -407,7 +407,7 @@ void testGetTcpTable(void) ...@@ -407,7 +407,7 @@ void testGetTcpTable(void)
} }
} }
void testGetUdpTable(void) static void testGetUdpTable(void)
{ {
if (gGetUdpTable) { if (gGetUdpTable) {
DWORD apiReturn; DWORD apiReturn;
......
...@@ -297,7 +297,7 @@ static void test_CreateNamedPipe(int pipemode) ...@@ -297,7 +297,7 @@ static void test_CreateNamedPipe(int pipemode)
trace("test_CreateNamedPipe returning\n"); trace("test_CreateNamedPipe returning\n");
} }
void test_CreateNamedPipe_instances_must_match(void) static void test_CreateNamedPipe_instances_must_match(void)
{ {
HANDLE hnp, hnp2; HANDLE hnp, hnp2;
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
#define CHECK_DEF(n,d1,d2) ok(d1 == d2, "Defines (MSVCRT_)%s are different: '%d' vs. '%d'\n", n, d1, d2) #define CHECK_DEF(n,d1,d2) ok(d1 == d2, "Defines (MSVCRT_)%s are different: '%d' vs. '%d'\n", n, d1, d2)
/************* Checking types ***************/ /************* Checking types ***************/
void test_types(void) static void test_types(void)
{ {
CHECK_TYPE(wchar_t); CHECK_TYPE(wchar_t);
CHECK_TYPE(wint_t); CHECK_TYPE(wint_t);
...@@ -97,7 +97,7 @@ void test_types(void) ...@@ -97,7 +97,7 @@ void test_types(void)
} }
/************* Checking structs ***************/ /************* Checking structs ***************/
void test_structs(void) static void test_structs(void)
{ {
CHECK_STRUCT(tm); CHECK_STRUCT(tm);
CHECK_FIELD(tm, tm_sec); CHECK_FIELD(tm, tm_sec);
......
...@@ -34,7 +34,7 @@ static void * (*pMSVCRTD_operator_new_dbg)(unsigned long, int, const char *, int ...@@ -34,7 +34,7 @@ static void * (*pMSVCRTD_operator_new_dbg)(unsigned long, int, const char *, int
#define SETNOFAIL(x,y) x = (void*)GetProcAddress(hModule,y) #define SETNOFAIL(x,y) x = (void*)GetProcAddress(hModule,y)
#define SET(x,y) SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y) #define SET(x,y) SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y)
int init_functions(void) static int init_functions(void)
{ {
HMODULE hModule = LoadLibraryA("msvcrtd.dll"); HMODULE hModule = LoadLibraryA("msvcrtd.dll");
ok(hModule != NULL, "LoadLibraryA failed\n"); ok(hModule != NULL, "LoadLibraryA failed\n");
...@@ -51,7 +51,7 @@ int init_functions(void) ...@@ -51,7 +51,7 @@ int init_functions(void)
/**********************************************************************/ /**********************************************************************/
void test_new(void) static void test_new(void)
{ {
void *mem; void *mem;
......
...@@ -64,7 +64,7 @@ static int init_access_tests(void) ...@@ -64,7 +64,7 @@ static int init_access_tests(void)
return 1; return 1;
} }
void run_usergetinfo_tests(void) static void run_usergetinfo_tests(void)
{ {
NET_API_STATUS rc; NET_API_STATUS rc;
PUSER_INFO_0 ui0 = NULL; PUSER_INFO_0 ui0 = NULL;
...@@ -123,7 +123,7 @@ void run_usergetinfo_tests(void) ...@@ -123,7 +123,7 @@ void run_usergetinfo_tests(void)
} }
/* checks Level 1 of NetQueryDisplayInformation */ /* checks Level 1 of NetQueryDisplayInformation */
void run_querydisplayinformation1_tests(void) static void run_querydisplayinformation1_tests(void)
{ {
PNET_DISPLAY_USER Buffer, rec; PNET_DISPLAY_USER Buffer, rec;
DWORD Result, EntryCount; DWORD Result, EntryCount;
......
...@@ -35,7 +35,7 @@ static NET_API_STATUS (WINAPI *pNetApiBufferReallocate)(LPVOID,DWORD,LPVOID*)=NU ...@@ -35,7 +35,7 @@ static NET_API_STATUS (WINAPI *pNetApiBufferReallocate)(LPVOID,DWORD,LPVOID*)=NU
static NET_API_STATUS (WINAPI *pNetApiBufferSize)(LPVOID,LPDWORD)=NULL; static NET_API_STATUS (WINAPI *pNetApiBufferSize)(LPVOID,LPDWORD)=NULL;
void run_apibuf_tests(void) static void run_apibuf_tests(void)
{ {
VOID *p; VOID *p;
DWORD dwSize; DWORD dwSize;
......
...@@ -58,7 +58,7 @@ static BOOL Uuid_Comparison_Grid[11][11] = { ...@@ -58,7 +58,7 @@ static BOOL Uuid_Comparison_Grid[11][11] = {
{ TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE } { TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE }
}; };
void UuidConversionAndComparison(void) { static void UuidConversionAndComparison(void) {
CHAR strx[100], x; CHAR strx[100], x;
LPSTR str = strx; LPSTR str = strx;
WCHAR wstrx[100], wx; WCHAR wstrx[100], wx;
...@@ -123,7 +123,7 @@ void UuidConversionAndComparison(void) { ...@@ -123,7 +123,7 @@ void UuidConversionAndComparison(void) {
} }
} }
void TestDceErrorInqText (void) static void TestDceErrorInqText (void)
{ {
char bufferInvalid [1024]; char bufferInvalid [1024];
char buffer [1024]; /* The required size is not documented but would char buffer [1024]; /* The required size is not documented but would
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment