fix -Wstrict-prototypes warnings (resend)
Stefan Huehner
stefan at huehner.org
Mon Jun 20 08:12:38 CDT 2005
Hi,
resend of last big cleanup patch (fixes more -Wstrict-prototypes
warnings). Now split into many smaller pieces and rediffed because
of reject in ole32/tests/compobj.c
ChangeLog:
- fix more -Wstrict-prototypes warnings
Regards,
Stefan
-------------- next part --------------
Index: programs/notepad/dialog.h
===================================================================
RCS file: /home/wine/wine/programs/notepad/dialog.h,v
retrieving revision 1.8
diff -u -p -r1.8 dialog.h
--- programs/notepad/dialog.h 21 Jul 2003 20:05:33 -0000 1.8
+++ programs/notepad/dialog.h 19 Jun 2005 22:12:29 -0000
@@ -51,7 +51,7 @@ VOID DIALOG_HelpAboutWine(VOID);
VOID DIALOG_TimeDate(VOID);
/* utility functions */
-VOID ShowLastError();
+VOID ShowLastError(void);
BOOL FileExists(LPCWSTR szFilename);
BOOL DoCloseFile(void);
void DoOpenFile(LPCWSTR szFileName);
Index: programs/progman/grpfile.c
===================================================================
RCS file: /home/wine/wine/programs/progman/grpfile.c,v
retrieving revision 1.9
diff -u -p -r1.9 grpfile.c
--- programs/progman/grpfile.c 2 Oct 2002 01:34:17 -0000 1.9
+++ programs/progman/grpfile.c 19 Jun 2005 22:12:31 -0000
@@ -451,7 +451,7 @@ BYTE GRPFILE_checksum_last_byte;
* GRPFILE_InitChecksum
*/
-static void GRPFILE_InitChecksum()
+static void GRPFILE_InitChecksum(void)
{
GRPFILE_checksum = 0;
GRPFILE_checksum_half_word = 0;
@@ -462,7 +462,7 @@ static void GRPFILE_InitChecksum()
* GRPFILE_GetChecksum
*/
-static UINT16 GRPFILE_GetChecksum()
+static UINT16 GRPFILE_GetChecksum(void)
{
return GRPFILE_checksum;
}
Index: tools/winegcc/winegcc.c
===================================================================
RCS file: /home/wine/wine/tools/winegcc/winegcc.c,v
retrieving revision 1.38
diff -u -p -r1.38 winegcc.c
--- tools/winegcc/winegcc.c 9 May 2005 14:38:06 -0000 1.38
+++ tools/winegcc/winegcc.c 19 Jun 2005 22:12:34 -0000
@@ -163,7 +163,7 @@ struct options
strarray* files;
};
-static void clean_temp_files()
+static void clean_temp_files(void)
{
int i;
-------------- next part --------------
Index: dlls/./advapi32/tests/crypt.c
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/tests/crypt.c,v
retrieving revision 1.24
diff -u -p -r1.24 crypt.c
--- dlls/./advapi32/tests/crypt.c 9 Jun 2005 09:48:36 -0000 1.24
+++ dlls/./advapi32/tests/crypt.c 20 Jun 2005 12:45:02 -0000
@@ -494,7 +494,7 @@ static BOOL FindProvTypesRegVals(DWORD d
return TRUE;
}
-static void test_enum_provider_types()
+static void test_enum_provider_types(void)
{
/* expected values */
DWORD dwProvType;
@@ -634,7 +634,7 @@ static BOOL FindDfltProvRegVals(DWORD dw
return TRUE;
}
-static void test_get_default_provider()
+static void test_get_default_provider(void)
{
/* expected results */
DWORD dwProvType = PROV_RSA_FULL;
@@ -708,7 +708,7 @@ static void test_get_default_provider()
LocalFree(provName);
}
-static void test_set_provider_ex()
+static void test_set_provider_ex(void)
{
DWORD result;
DWORD notNull = 5;
Index: dlls/./advapi32/tests/crypt_lmhash.c
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/tests/crypt_lmhash.c,v
retrieving revision 1.1
diff -u -p -r1.1 crypt_lmhash.c
--- dlls/./advapi32/tests/crypt_lmhash.c 4 Oct 2004 20:42:05 -0000 1.1
+++ dlls/./advapi32/tests/crypt_lmhash.c 20 Jun 2005 12:45:02 -0000
@@ -27,7 +27,7 @@
typedef VOID (WINAPI *fnSystemFunction006)( PCSTR passwd, PSTR lmhash );
fnSystemFunction006 pSystemFunction006;
-static void test_SystemFunction006()
+static void test_SystemFunction006(void)
{
static unsigned char lmhash[16 + 1];
Index: dlls/./advapi32/tests/registry.c
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/tests/registry.c,v
retrieving revision 1.26
diff -u -p -r1.26 registry.c
--- dlls/./advapi32/tests/registry.c 16 Jun 2005 20:34:34 -0000 1.26
+++ dlls/./advapi32/tests/registry.c 20 Jun 2005 12:45:02 -0000
@@ -243,7 +243,7 @@ static void test_enum_value(void)
ok( !memcmp( dataW, foobarW, sizeof(foobarW) ), "data is not 'foobar'\n" );
}
-static void test_query_value_ex()
+static void test_query_value_ex(void)
{
DWORD ret;
DWORD size;
@@ -255,7 +255,7 @@ static void test_query_value_ex()
ok(type == REG_SZ, "type %ld is not REG_SZ\n", type);
}
-static void test_reg_open_key()
+static void test_reg_open_key(void)
{
DWORD ret = 0;
HKEY hkResult = NULL;
@@ -330,7 +330,7 @@ static void test_reg_open_key()
ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %ld\n", ret);
}
-static void test_reg_create_key()
+static void test_reg_create_key(void)
{
LONG ret;
HKEY hkey1, hkey2;
@@ -346,7 +346,7 @@ static void test_reg_create_key()
RegDeleteKey(hkey1, NULL);
}
-static void test_reg_close_key()
+static void test_reg_close_key(void)
{
DWORD ret = 0;
HKEY hkHandle;
@@ -369,7 +369,7 @@ static void test_reg_close_key()
"expected ERROR_INVALID_HANDLE or ERROR_BADKEY, got %ld\n", ret);
}
-static void test_reg_delete_key()
+static void test_reg_delete_key(void)
{
DWORD ret;
@@ -378,7 +378,7 @@ static void test_reg_delete_key()
"expected ERROR_INVALID_PARAMETER or ERROR_ACCESS_DENIED, got %ld\n", ret);
}
-static void test_reg_save_key()
+static void test_reg_save_key(void)
{
DWORD ret;
@@ -386,7 +386,7 @@ static void test_reg_save_key()
ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret);
}
-static void test_reg_load_key()
+static void test_reg_load_key(void)
{
DWORD ret;
HKEY hkHandle;
@@ -400,7 +400,7 @@ static void test_reg_load_key()
RegCloseKey(hkHandle);
}
-static void test_reg_unload_key()
+static void test_reg_unload_key(void)
{
DWORD ret;
-------------- next part --------------
Index: dlls/./advpack/tests/advpack.c
===================================================================
RCS file: /home/wine/wine/dlls/advpack/tests/advpack.c,v
retrieving revision 1.3
diff -u -p -r1.3 advpack.c
--- dlls/./advpack/tests/advpack.c 27 Apr 2005 09:37:25 -0000 1.3
+++ dlls/./advpack/tests/advpack.c 20 Jun 2005 12:45:02 -0000
@@ -27,7 +27,7 @@
static HRESULT (WINAPI *pGetVersionFromFile)(LPSTR,LPDWORD,LPDWORD,BOOL);
static HRESULT (WINAPI *pDelNode)(LPCSTR,DWORD);
-static void version_test()
+static void version_test(void)
{
HRESULT hr;
DWORD major, minor;
@@ -49,7 +49,7 @@ static void version_test()
HIWORD(minor), LOWORD(minor));
}
-static void delnode_test()
+static void delnode_test(void)
{
HRESULT hr;
HANDLE hn;
-------------- next part --------------
Index: dlls/./comctl32/listview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/listview.c,v
retrieving revision 1.421
diff -u -p -r1.421 listview.c
--- dlls/./comctl32/listview.c 9 Jun 2005 09:50:56 -0000 1.421
+++ dlls/./comctl32/listview.c 20 Jun 2005 12:45:05 -0000
@@ -549,7 +549,7 @@ static inline LPCSTR debugtext_tn(LPCWST
return isW ? debugstr_wn(text, n) : debugstr_an((LPCSTR)text, n);
}
-static char* debug_getbuf()
+static char* debug_getbuf(void)
{
static int index = 0;
static char buffers[DEBUG_BUFFERS][DEBUG_BUFFER_SIZE];
Index: dlls/./comctl32/tests/imagelist.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/tests/imagelist.c,v
retrieving revision 1.11
diff -u -p -r1.11 imagelist.c
--- dlls/./comctl32/tests/imagelist.c 10 Feb 2005 19:19:36 -0000 1.11
+++ dlls/./comctl32/tests/imagelist.c 20 Jun 2005 12:45:05 -0000
@@ -469,7 +469,7 @@ static BOOL DoTest3(void)
return TRUE;
}
-static void testMerge()
+static void testMerge(void)
{
HIMAGELIST himl1, himl2, hmerge;
HICON hicon1;
-------------- next part --------------
Index: dlls/./ddraw/tests/d3d.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/tests/d3d.c,v
retrieving revision 1.3
diff -u -p -r1.3 d3d.c
--- dlls/./ddraw/tests/d3d.c 13 Jun 2005 12:10:55 -0000 1.3
+++ dlls/./ddraw/tests/d3d.c 20 Jun 2005 12:45:09 -0000
@@ -41,7 +41,7 @@ static void init_function_pointers(void)
}
-static void CreateDirect3D()
+static void CreateDirect3D(void)
{
HRESULT rc;
DDSURFACEDESC2 ddsd;
@@ -70,7 +70,7 @@ static void CreateDirect3D()
ok(rc==D3D_OK, "CreateDevice returned: %lx\n", rc);
}
-static void ReleaseDirect3D()
+static void ReleaseDirect3D(void)
{
if (lpD3DDevice != NULL)
{
@@ -97,7 +97,7 @@ static void ReleaseDirect3D()
}
}
-static void LightTest()
+static void LightTest(void)
{
HRESULT rc;
D3DLIGHT7 light;
Index: dlls/./ddraw/tests/ddrawmodes.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/tests/ddrawmodes.c,v
retrieving revision 1.5
diff -u -p -r1.5 ddrawmodes.c
--- dlls/./ddraw/tests/ddrawmodes.c 13 Jun 2005 12:10:55 -0000 1.5
+++ dlls/./ddraw/tests/ddrawmodes.c 20 Jun 2005 12:45:09 -0000
@@ -31,7 +31,7 @@ static int modes_cnt;
static int modes_size;
static LPDDSURFACEDESC modes;
-static void createdirectdraw()
+static void createdirectdraw(void)
{
HRESULT rc;
@@ -64,7 +64,7 @@ static void createdirectdraw()
}
-static void releasedirectdraw()
+static void releasedirectdraw(void)
{
if( lpDD != NULL )
{
@@ -83,7 +83,7 @@ static void adddisplaymode(LPDDSURFACEDE
modes[modes_cnt++] = *lpddsd;
}
-static void flushdisplaymodes()
+static void flushdisplaymodes(void)
{
free(modes);
modes = 0;
@@ -100,7 +100,7 @@ HRESULT WINAPI enummodescallback(LPDDSUR
return DDENUMRET_OK;
}
-void enumdisplaymodes()
+void enumdisplaymodes(void)
{
DDSURFACEDESC ddsd;
HRESULT rc;
@@ -138,7 +138,7 @@ static void setdisplaymode(int i)
}
}
-static void createsurface()
+static void createsurface(void)
{
DDSURFACEDESC ddsd;
DDSCAPS ddscaps;
@@ -157,7 +157,7 @@ static void createsurface()
ok(rc==DD_OK,"GetAttachedSurface returned: %lx\n",rc);
}
-static void destroysurface()
+static void destroysurface(void)
{
if( lpDDSPrimary != NULL )
{
@@ -166,7 +166,7 @@ static void destroysurface()
}
}
-static void testsurface()
+static void testsurface(void)
{
const char* testMsg = "ddraw device context test";
HDC hdc;
@@ -197,7 +197,7 @@ static void testsurface()
}
}
-static void testdisplaymodes()
+static void testdisplaymodes(void)
{
int i;
Index: dlls/./ddraw/tests/dsurface.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/tests/dsurface.c,v
retrieving revision 1.3
diff -u -p -r1.3 dsurface.c
--- dlls/./ddraw/tests/dsurface.c 17 Jun 2005 20:59:49 -0000 1.3
+++ dlls/./ddraw/tests/dsurface.c 20 Jun 2005 12:45:09 -0000
@@ -24,7 +24,7 @@
static LPDIRECTDRAW lpDD = NULL;
-static void CreateDirectDraw()
+static void CreateDirectDraw(void)
{
HRESULT rc;
@@ -36,7 +36,7 @@ static void CreateDirectDraw()
}
-static void ReleaseDirectDraw()
+static void ReleaseDirectDraw(void)
{
if( lpDD != NULL )
{
@@ -45,7 +45,7 @@ static void ReleaseDirectDraw()
}
}
-static void MipMapCreationTest()
+static void MipMapCreationTest(void)
{
LPDIRECTDRAWSURFACE lpDDSMipMapTest;
DDSURFACEDESC ddsd;
-------------- next part --------------
Index: dlls/./dinput/tests/joystick.c
===================================================================
RCS file: /home/wine/wine/dlls/dinput/tests/joystick.c,v
retrieving revision 1.3
diff -u -p -r1.3 joystick.c
--- dlls/./dinput/tests/joystick.c 16 May 2005 08:44:14 -0000 1.3
+++ dlls/./dinput/tests/joystick.c 20 Jun 2005 12:45:10 -0000
@@ -69,7 +69,7 @@ static const DIDATAFORMAT c_dfDIJoystick
(LPDIOBJECTDATAFORMAT)dfDIJoystickTest
};
-HWND get_hwnd()
+HWND get_hwnd(void)
{
HWND hwnd=GetForegroundWindow();
if (!hwnd)
Index: dlls/./dinput/tests/keyboard.c
===================================================================
RCS file: /home/wine/wine/dlls/dinput/tests/keyboard.c,v
retrieving revision 1.1
diff -u -p -r1.1 keyboard.c
--- dlls/./dinput/tests/keyboard.c 11 May 2005 12:05:17 -0000 1.1
+++ dlls/./dinput/tests/keyboard.c 20 Jun 2005 12:45:10 -0000
@@ -67,7 +67,7 @@ const char * get_file_version(const char
return version;
}
-static void keyboard_tests()
+static void keyboard_tests(void)
{
}
-------------- next part --------------
Index: dlls/./dmband/dmband_private.h
===================================================================
RCS file: /home/wine/wine/dlls/dmband/dmband_private.h,v
retrieving revision 1.14
diff -u -p -r1.14 dmband_private.h
--- dlls/./dmband/dmband_private.h 30 May 2005 10:01:11 -0000 1.14
+++ dlls/./dmband/dmband_private.h 20 Jun 2005 12:45:11 -0000
@@ -138,8 +138,8 @@ extern ULONG WINAPI IDirectMusicBandTr
* Dll lifetime tracking declaration for dmband.dll
*/
extern LONG DMBAND_refCount;
-static inline void DMBAND_LockModule() { InterlockedIncrement( &DMBAND_refCount ); }
-static inline void DMBAND_UnlockModule() { InterlockedDecrement( &DMBAND_refCount ); }
+static inline void DMBAND_LockModule(void) { InterlockedIncrement( &DMBAND_refCount ); }
+static inline void DMBAND_UnlockModule(void) { InterlockedDecrement( &DMBAND_refCount ); }
/*****************************************************************************
* Misc.
-------------- next part --------------
Index: dlls/./dmcompos/dmcompos_private.h
===================================================================
RCS file: /home/wine/wine/dlls/dmcompos/dmcompos_private.h,v
retrieving revision 1.12
diff -u -p -r1.12 dmcompos_private.h
--- dlls/./dmcompos/dmcompos_private.h 30 May 2005 10:01:10 -0000 1.12
+++ dlls/./dmcompos/dmcompos_private.h 20 Jun 2005 12:45:11 -0000
@@ -144,8 +144,8 @@ extern ULONG WINAPI IDirectMusicSignPo
* Dll lifetime tracking declaration for dmcompos.dll
*/
extern LONG DMCOMPOS_refCount;
-static inline void DMCOMPOS_LockModule() { InterlockedIncrement( &DMCOMPOS_refCount ); }
-static inline void DMCOMPOS_UnlockModule() { InterlockedDecrement( &DMCOMPOS_refCount ); }
+static inline void DMCOMPOS_LockModule(void) { InterlockedIncrement( &DMCOMPOS_refCount ); }
+static inline void DMCOMPOS_UnlockModule(void) { InterlockedDecrement( &DMCOMPOS_refCount ); }
/*****************************************************************************
* Misc.
-------------- next part --------------
Index: dlls/./dmime/dmime_private.h
===================================================================
RCS file: /home/wine/wine/dlls/dmime/dmime_private.h,v
retrieving revision 1.23
diff -u -p -r1.23 dmime_private.h
--- dlls/./dmime/dmime_private.h 30 May 2005 10:01:10 -0000 1.23
+++ dlls/./dmime/dmime_private.h 20 Jun 2005 12:45:11 -0000
@@ -547,8 +547,8 @@ extern ULONG WINAPI IDirectMusicWaveTr
* Dll lifetime tracking declaration for dmime.dll
*/
extern LONG DMIME_refCount;
-static inline void DMIME_LockModule() { InterlockedIncrement( &DMIME_refCount ); }
-static inline void DMIME_UnlockModule() { InterlockedDecrement( &DMIME_refCount ); }
+static inline void DMIME_LockModule(void) { InterlockedIncrement( &DMIME_refCount ); }
+static inline void DMIME_UnlockModule(void) { InterlockedDecrement( &DMIME_refCount ); }
/*****************************************************************************
* Misc.
-------------- next part --------------
Index: dlls/./dmscript/dmscript_private.h
===================================================================
RCS file: /home/wine/wine/dlls/dmscript/dmscript_private.h,v
retrieving revision 1.13
diff -u -p -r1.13 dmscript_private.h
--- dlls/./dmscript/dmscript_private.h 30 May 2005 10:01:09 -0000 1.13
+++ dlls/./dmscript/dmscript_private.h 20 Jun 2005 12:45:12 -0000
@@ -112,8 +112,8 @@ extern ULONG WINAPI IDirectMusicScript
* Dll lifetime tracking declaration for dmscript.dll
*/
extern LONG DMSCRIPT_refCount;
-static inline void DMSCRIPT_LockModule() { InterlockedIncrement( &DMSCRIPT_refCount ); }
-static inline void DMSCRIPT_UnlockModule() { InterlockedDecrement( &DMSCRIPT_refCount ); }
+static inline void DMSCRIPT_LockModule(void) { InterlockedIncrement( &DMSCRIPT_refCount ); }
+static inline void DMSCRIPT_UnlockModule(void) { InterlockedDecrement( &DMSCRIPT_refCount ); }
/*****************************************************************************
* Misc.
-------------- next part --------------
Index: dlls/./dmstyle/dmstyle_private.h
===================================================================
RCS file: /home/wine/wine/dlls/dmstyle/dmstyle_private.h,v
retrieving revision 1.14
diff -u -p -r1.14 dmstyle_private.h
--- dlls/./dmstyle/dmstyle_private.h 30 May 2005 10:01:08 -0000 1.14
+++ dlls/./dmstyle/dmstyle_private.h 20 Jun 2005 12:45:12 -0000
@@ -299,8 +299,8 @@ extern ULONG WINAPI IDirectMusicStyleT
* Dll lifetime tracking declaration for dmstyle.dll
*/
extern LONG DMSTYLE_refCount;
-static inline void DMSTYLE_LockModule() { InterlockedIncrement( &DMSTYLE_refCount ); }
-static inline void DMSTYLE_UnlockModule() { InterlockedDecrement( &DMSTYLE_refCount ); }
+static inline void DMSTYLE_LockModule(void) { InterlockedIncrement( &DMSTYLE_refCount ); }
+static inline void DMSTYLE_UnlockModule(void) { InterlockedDecrement( &DMSTYLE_refCount ); }
/*****************************************************************************
* Misc.
-------------- next part --------------
Index: dlls/./dmsynth/dmsynth_private.h
===================================================================
RCS file: /home/wine/wine/dlls/dmsynth/dmsynth_private.h,v
retrieving revision 1.10
diff -u -p -r1.10 dmsynth_private.h
--- dlls/./dmsynth/dmsynth_private.h 1 Jun 2005 19:57:43 -0000 1.10
+++ dlls/./dmsynth/dmsynth_private.h 20 Jun 2005 12:45:12 -0000
@@ -89,8 +89,8 @@ extern ULONG WINAPI IDirectMusicSynthS
* Dll lifetime tracking declaration for dmsynth.dll
*/
extern LONG DMSYNTH_refCount;
-static inline void DMSYNTH_LockModule() { InterlockedIncrement( &DMSYNTH_refCount ); }
-static inline void DMSYNTH_UnlockModule() { InterlockedDecrement( &DMSYNTH_refCount ); }
+static inline void DMSYNTH_LockModule(void) { InterlockedIncrement( &DMSYNTH_refCount ); }
+static inline void DMSYNTH_UnlockModule(void) { InterlockedDecrement( &DMSYNTH_refCount ); }
/*****************************************************************************
* Misc.
-------------- next part --------------
Index: dlls/./dmusic/dmusic_private.h
===================================================================
RCS file: /home/wine/wine/dlls/dmusic/dmusic_private.h,v
retrieving revision 1.26
diff -u -p -r1.26 dmusic_private.h
--- dlls/./dmusic/dmusic_private.h 1 Jun 2005 19:57:43 -0000 1.26
+++ dlls/./dmusic/dmusic_private.h 20 Jun 2005 12:45:12 -0000
@@ -286,8 +286,8 @@ extern HRESULT WINAPI IDirectMusicInstru
* Dll lifetime tracking declaration for dmusic.dll
*/
extern LONG DMUSIC_refCount;
-static inline void DMUSIC_LockModule() { InterlockedIncrement( &DMUSIC_refCount ); }
-static inline void DMUSIC_UnlockModule() { InterlockedDecrement( &DMUSIC_refCount ); }
+static inline void DMUSIC_LockModule(void) { InterlockedIncrement( &DMUSIC_refCount ); }
+static inline void DMUSIC_UnlockModule(void) { InterlockedDecrement( &DMUSIC_refCount ); }
/*****************************************************************************
* Helper Functions
-------------- next part --------------
Index: dlls/./dsound/tests/ds3d.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/ds3d.c,v
retrieving revision 1.24
diff -u -p -r1.24 ds3d.c
--- dlls/./dsound/tests/ds3d.c 5 Jun 2005 17:55:08 -0000 1.24
+++ dlls/./dsound/tests/ds3d.c 20 Jun 2005 12:45:13 -0000
@@ -1225,7 +1225,7 @@ static BOOL WINAPI dsenum_callback(LPGUI
return 1;
}
-static void ds3d_tests()
+static void ds3d_tests(void)
{
HRESULT rc;
rc=DirectSoundEnumerateA(&dsenum_callback,NULL);
Index: dlls/./dsound/tests/ds3d8.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/ds3d8.c,v
retrieving revision 1.18
diff -u -p -r1.18 ds3d8.c
--- dlls/./dsound/tests/ds3d8.c 5 Jun 2005 17:55:08 -0000 1.18
+++ dlls/./dsound/tests/ds3d8.c 20 Jun 2005 12:45:13 -0000
@@ -1118,7 +1118,7 @@ static BOOL WINAPI dsenum_callback(LPGUI
return 1;
}
-static void ds3d8_tests()
+static void ds3d8_tests(void)
{
HRESULT rc;
rc=DirectSoundEnumerateA(&dsenum_callback,NULL);
Index: dlls/./dsound/tests/dsound.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/dsound.c,v
retrieving revision 1.54
diff -u -p -r1.54 dsound.c
--- dlls/./dsound/tests/dsound.c 5 Jun 2005 17:55:08 -0000 1.54
+++ dlls/./dsound/tests/dsound.c 20 Jun 2005 12:45:13 -0000
@@ -168,7 +168,7 @@ EXIT:
ok(ref==0,"IDirectSound_Release() has %d references, should have 0\n",ref);
}
-static void IDirectSound_tests()
+static void IDirectSound_tests(void)
{
HRESULT rc;
LPDIRECTSOUND dso=NULL;
@@ -928,7 +928,7 @@ static BOOL WINAPI dsenum_callback(LPGUI
return 1;
}
-static void dsound_tests()
+static void dsound_tests(void)
{
HRESULT rc;
rc=DirectSoundEnumerateA(&dsenum_callback,NULL);
Index: dlls/./dsound/tests/dsound8.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/dsound8.c,v
retrieving revision 1.23
diff -u -p -r1.23 dsound8.c
--- dlls/./dsound/tests/dsound8.c 5 Jun 2005 17:55:08 -0000 1.23
+++ dlls/./dsound/tests/dsound8.c 20 Jun 2005 12:45:13 -0000
@@ -187,7 +187,7 @@ EXIT:
ok(ref==0,"IDirectSound8_Release() has %d references, should have 0\n",ref);
}
-static void IDirectSound8_tests()
+static void IDirectSound8_tests(void)
{
HRESULT rc;
LPDIRECTSOUND8 dso=NULL;
@@ -790,7 +790,7 @@ static BOOL WINAPI dsenum_callback(LPGUI
return 1;
}
-static void dsound8_tests()
+static void dsound8_tests(void)
{
HRESULT rc;
rc=DirectSoundEnumerateA(&dsenum_callback,NULL);
Index: dlls/./dsound/tests/propset.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/propset.c,v
retrieving revision 1.17
diff -u -p -r1.17 propset.c
--- dlls/./dsound/tests/propset.c 14 Mar 2005 10:04:07 -0000 1.17
+++ dlls/./dsound/tests/propset.c 20 Jun 2005 12:45:13 -0000
@@ -178,7 +178,7 @@ BOOL CALLBACK callbackW(PDSPROPERTY_DIRE
return TRUE;
}
-static void propset_private_tests()
+static void propset_private_tests(void)
{
HMODULE hDsound;
HRESULT rc;
@@ -700,7 +700,7 @@ EXIT:
return 1;
}
-static void propset_buffer_tests()
+static void propset_buffer_tests(void)
{
HRESULT rc;
rc=DirectSoundEnumerateA(&dsenum_callback,NULL);
-------------- next part --------------
Index: dlls/./dswave/dswave_private.h
===================================================================
RCS file: /home/wine/wine/dlls/dswave/dswave_private.h,v
retrieving revision 1.8
diff -u -p -r1.8 dswave_private.h
--- dlls/./dswave/dswave_private.h 1 Jun 2005 19:57:42 -0000 1.8
+++ dlls/./dswave/dswave_private.h 20 Jun 2005 12:45:14 -0000
@@ -81,8 +81,8 @@ extern ULONG WINAPI IDirectMusicWaveIm
* Dll lifetime tracking declaration for dswave.dll
*/
extern LONG DSWAVE_refCount;
-static inline void DSWAVE_LockModule() { InterlockedIncrement( &DSWAVE_refCount ); }
-static inline void DSWAVE_UnlockModule() { InterlockedDecrement( &DSWAVE_refCount ); }
+static inline void DSWAVE_LockModule(void) { InterlockedIncrement( &DSWAVE_refCount ); }
+static inline void DSWAVE_UnlockModule(void) { InterlockedDecrement( &DSWAVE_refCount ); }
/*****************************************************************************
* Misc.
-------------- next part --------------
Index: dlls/./dxdiagn/dxdiag_private.h
===================================================================
RCS file: /home/wine/wine/dlls/dxdiagn/dxdiag_private.h,v
retrieving revision 1.8
diff -u -p -r1.8 dxdiag_private.h
--- dlls/./dxdiagn/dxdiag_private.h 1 Jun 2005 19:57:42 -0000 1.8
+++ dlls/./dxdiagn/dxdiag_private.h 20 Jun 2005 12:45:14 -0000
@@ -114,7 +114,7 @@ extern HRESULT DXDiag_InitRootDXDiagCont
* Dll lifetime tracking declaration for dxdiagn.dll
*/
extern LONG DXDIAGN_refCount;
-static inline void DXDIAGN_LockModule() { InterlockedIncrement( &DXDIAGN_refCount ); }
-static inline void DXDIAGN_UnlockModule() { InterlockedDecrement( &DXDIAGN_refCount ); }
+static inline void DXDIAGN_LockModule(void) { InterlockedIncrement( &DXDIAGN_refCount ); }
+static inline void DXDIAGN_UnlockModule(void) { InterlockedDecrement( &DXDIAGN_refCount ); }
#endif
-------------- next part --------------
Index: dlls/./gdi/tests/brush.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/tests/brush.c,v
retrieving revision 1.3
diff -u -p -r1.3 brush.c
--- dlls/./gdi/tests/brush.c 14 Feb 2005 11:03:36 -0000 1.3
+++ dlls/./gdi/tests/brush.c 20 Jun 2005 12:45:14 -0000
@@ -32,7 +32,7 @@ typedef struct _STOCK_BRUSH {
const char *name;
} STOCK_BRUSH;
-static void test_solidbrush()
+static void test_solidbrush(void)
{
static const STOCK_BRUSH stock[] = {
{RGB(255,255,255), WHITE_BRUSH, "white"},
-------------- next part --------------
Index: dlls/./kernel/tests/environ.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/environ.c,v
retrieving revision 1.10
diff -u -p -r1.10 environ.c
--- dlls/./kernel/tests/environ.c 22 Mar 2005 18:17:07 -0000 1.10
+++ dlls/./kernel/tests/environ.c 20 Jun 2005 12:45:16 -0000
@@ -211,7 +211,7 @@ static void test_GetSetEnvironmentVariab
ret, GetLastError());
}
-static void test_ExpandEnvironmentStringsA()
+static void test_ExpandEnvironmentStringsA(void)
{
char buf[256], buf1[256];
DWORD ret_size, ret_size1;
Index: dlls/./kernel/tests/file.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/file.c,v
retrieving revision 1.55
diff -u -p -r1.55 file.c
--- dlls/./kernel/tests/file.c 13 Jun 2005 12:10:55 -0000 1.55
+++ dlls/./kernel/tests/file.c 20 Jun 2005 12:45:16 -0000
@@ -712,7 +712,7 @@ static void test_CreateFileW(void)
"CreateFileW on invalid VxD name returned ret=%p error=%ld\n",hFile,GetLastError());
}
-static void test_GetTempFileNameA()
+static void test_GetTempFileNameA(void)
{
UINT result;
char out[MAX_PATH];
@@ -1170,14 +1170,14 @@ static void test_file_sharing(void)
DeleteFileA( filename );
}
-static char get_windows_drive()
+static char get_windows_drive(void)
{
char windowsdir[MAX_PATH];
GetWindowsDirectory(windowsdir, sizeof(windowsdir));
return windowsdir[0];
}
-static void test_FindFirstFileA()
+static void test_FindFirstFileA(void)
{
HANDLE handle;
WIN32_FIND_DATAA search_results;
@@ -1199,7 +1199,7 @@ static void test_FindFirstFileA()
ok ( FindClose(handle) == TRUE, "Failed to close handle\n");
}
-static void test_FindNextFileA()
+static void test_FindNextFileA(void)
{
HANDLE handle;
WIN32_FIND_DATAA search_results;
@@ -1232,7 +1232,7 @@ static int test_Mapfile_createtemp(HANDL
return 0;
}
-static void test_MapFile()
+static void test_MapFile(void)
{
HANDLE handle;
HANDLE hmap;
Index: dlls/./kernel/tests/locale.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/locale.c,v
retrieving revision 1.37
diff -u -p -r1.37 locale.c
--- dlls/./kernel/tests/locale.c 2 Jun 2005 10:30:57 -0000 1.37
+++ dlls/./kernel/tests/locale.c 20 Jun 2005 12:45:16 -0000
@@ -135,7 +135,7 @@ static char GlobalBuffer[BUFFER_SIZE]; /
#define NUO LOCALE_NOUSEROVERRIDE
-static void test_GetLocaleInfoA()
+static void test_GetLocaleInfoA(void)
{
int ret;
LCID lcid = MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT);
@@ -161,7 +161,7 @@ static void test_GetLocaleInfoA()
ok(!strcmp(buffer, "Monday"), "Expected 'Monday', got '%s'\n", buffer);
}
-static void test_GetTimeFormatA()
+static void test_GetTimeFormatA(void)
{
int ret;
SYSTEMTIME curtime;
@@ -314,7 +314,7 @@ static void test_GetTimeFormatA()
EXPECT_VALID; EXPECT_LENA; EXPECT_EQA;
}
-static void test_GetDateFormatA()
+static void test_GetDateFormatA(void)
{
int ret;
SYSTEMTIME curtime;
@@ -375,7 +375,7 @@ static void test_GetDateFormatA()
EXPECT_FLAGS; EXPECT_LEN(0); EXPECT_EQA;
}
-static void test_GetDateFormatW()
+static void test_GetDateFormatW(void)
{
int ret;
SYSTEMTIME curtime;
@@ -416,7 +416,7 @@ static void test_GetDateFormatW()
#define CY_POS_LEFT_SPACE 2
#define CY_POS_RIGHT_SPACE 3
-static void test_GetCurrencyFormatA()
+static void test_GetCurrencyFormatA(void)
{
static char szDot[] = { '.', '\0' };
static char szComma[] = { ',', '\0' };
@@ -614,7 +614,7 @@ static void test_GetCurrencyFormatA()
#define NEG_RIGHT 3 /* "1.1-" */
#define NEG_RIGHT_SPACE 4 /* "1.1 -" */
-static void test_GetNumberFormatA()
+static void test_GetNumberFormatA(void)
{
static char szDot[] = { '.', '\0' };
static char szComma[] = { ',', '\0' };
@@ -759,7 +759,7 @@ static BOOL CALLBACK EnumTimeFormatsProc
return FALSE;
}
-static void test_EnumTimeFormats()
+static void test_EnumTimeFormats(void)
{
int ret;
LCID lcid = MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT);
@@ -769,7 +769,7 @@ static void test_EnumTimeFormats()
ok (ret == 1 && !strcmp(GlobalBuffer,"h:mm:ss tt"), "Expected %d '%s'\n", ret, GlobalBuffer);
}
-static void test_CompareStringA()
+static void test_CompareStringA(void)
{
int ret;
LCID lcid = MAKELCID(MAKELANGID(LANG_FRENCH, SUBLANG_DEFAULT), SORT_DEFAULT);
Index: dlls/./kernel/tests/mailslot.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/mailslot.c,v
retrieving revision 1.9
diff -u -p -r1.9 mailslot.c
--- dlls/./kernel/tests/mailslot.c 25 May 2005 09:54:51 -0000 1.9
+++ dlls/./kernel/tests/mailslot.c 20 Jun 2005 12:45:16 -0000
@@ -29,7 +29,7 @@
static const char szmspath[] = "\\\\.\\mailslot\\wine_mailslot_test";
-static int mailslot_test()
+static int mailslot_test(void)
{
HANDLE hSlot, hSlot2, hWriter, hWriter2;
unsigned char buffer[16];
-------------- next part --------------
Index: dlls/./mscms/tests/profile.c
===================================================================
RCS file: /home/wine/wine/dlls/mscms/tests/profile.c,v
retrieving revision 1.12
diff -u -p -r1.12 profile.c
--- dlls/./mscms/tests/profile.c 11 Apr 2005 18:49:40 -0000 1.12
+++ dlls/./mscms/tests/profile.c 20 Jun 2005 12:45:20 -0000
@@ -87,7 +87,7 @@ static void MSCMS_basenameW( LPCWSTR pat
lstrcpyW( name, &path[i] );
}
-static void test_GetColorDirectoryA()
+static void test_GetColorDirectoryA(void)
{
BOOL ret;
DWORD size;
@@ -121,7 +121,7 @@ static void test_GetColorDirectoryA()
ok( ret && size > 0, "GetColorDirectoryA() failed (%ld)\n", GetLastError() );
}
-static void test_GetColorDirectoryW()
+static void test_GetColorDirectoryW(void)
{
BOOL ret;
DWORD size;
@@ -159,7 +159,7 @@ static void test_GetColorDirectoryW()
ok( ret && size > 0, "GetColorDirectoryW() failed (%ld)\n", GetLastError() );
}
-static void test_GetColorProfileElement()
+static void test_GetColorProfileElement(void)
{
if (standardprofile)
{
@@ -209,7 +209,7 @@ static void test_GetColorProfileElement(
}
}
-static void test_GetColorProfileElementTag()
+static void test_GetColorProfileElementTag(void)
{
if (standardprofile)
{
@@ -250,7 +250,7 @@ static void test_GetColorProfileElementT
}
}
-static void test_GetColorProfileFromHandle()
+static void test_GetColorProfileFromHandle(void)
{
if (testprofile)
{
@@ -308,7 +308,7 @@ static void test_GetColorProfileFromHand
}
}
-static void test_GetColorProfileHeader()
+static void test_GetColorProfileHeader(void)
{
if (testprofile)
{
@@ -346,7 +346,7 @@ static void test_GetColorProfileHeader()
}
}
-static void test_GetCountColorProfileElements()
+static void test_GetCountColorProfileElements(void)
{
if (standardprofile)
{
@@ -382,7 +382,7 @@ static void test_GetCountColorProfileEle
}
}
-static void test_GetStandardColorSpaceProfileA()
+static void test_GetStandardColorSpaceProfileA(void)
{
BOOL ret;
DWORD size;
@@ -431,7 +431,7 @@ static void test_GetStandardColorSpacePr
}
}
-static void test_GetStandardColorSpaceProfileW()
+static void test_GetStandardColorSpaceProfileW(void)
{
BOOL ret;
DWORD size;
@@ -480,7 +480,7 @@ static void test_GetStandardColorSpacePr
}
}
-static void test_InstallColorProfileA()
+static void test_InstallColorProfileA(void)
{
BOOL ret;
@@ -531,7 +531,7 @@ static void test_InstallColorProfileA()
}
}
-static void test_InstallColorProfileW()
+static void test_InstallColorProfileW(void)
{
BOOL ret;
@@ -582,7 +582,7 @@ static void test_InstallColorProfileW()
}
}
-static void test_IsColorProfileTagPresent()
+static void test_IsColorProfileTagPresent(void)
{
if (standardprofile)
{
@@ -622,7 +622,7 @@ static void test_IsColorProfileTagPresen
}
}
-static void test_OpenColorProfileA()
+static void test_OpenColorProfileA(void)
{
PROFILE profile;
HPROFILE handle;
@@ -672,7 +672,7 @@ static void test_OpenColorProfileA()
}
}
-static void test_OpenColorProfileW()
+static void test_OpenColorProfileW(void)
{
PROFILE profile;
HPROFILE handle;
@@ -722,7 +722,7 @@ static void test_OpenColorProfileW()
}
}
-static void test_SetColorProfileElement()
+static void test_SetColorProfileElement(void)
{
if (testprofile)
{
@@ -780,7 +780,7 @@ static void test_SetColorProfileElement(
}
}
-static void test_SetColorProfileHeader()
+static void test_SetColorProfileHeader(void)
{
if (testprofile)
{
@@ -851,7 +851,7 @@ static void test_SetColorProfileHeader()
}
}
-static void test_UninstallColorProfileA()
+static void test_UninstallColorProfileA(void)
{
BOOL ret;
@@ -893,7 +893,7 @@ static void test_UninstallColorProfileA(
}
}
-static void test_UninstallColorProfileW()
+static void test_UninstallColorProfileW(void)
{
BOOL ret;
-------------- next part --------------
Index: dlls/./msi/action.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/action.c,v
retrieving revision 1.150
diff -u -p -r1.150 action.c
--- dlls/./msi/action.c 17 Jun 2005 21:25:41 -0000 1.150
+++ dlls/./msi/action.c 20 Jun 2005 12:45:20 -0000
@@ -2530,7 +2530,7 @@ static LPWSTR resolve_keypath( MSIPACKAG
return NULL;
}
-static HKEY openSharedDLLsKey()
+static HKEY openSharedDLLsKey(void)
{
HKEY hkey=0;
static const WCHAR path[] =
Index: dlls/./msi/tests/db.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/tests/db.c,v
retrieving revision 1.12
diff -u -p -r1.12 db.c
--- dlls/./msi/tests/db.c 29 May 2005 20:08:12 -0000 1.12
+++ dlls/./msi/tests/db.c 20 Jun 2005 12:45:20 -0000
@@ -222,7 +222,7 @@ static UINT try_insert_query( MSIHANDLE
return r;
}
-static void test_msibadqueries()
+static void test_msibadqueries(void)
{
const char *msifile = "winetest.msi";
MSIHANDLE hdb = 0;
-------------- next part --------------
Index: dlls/./msvcrt/tests/headers.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/tests/headers.c,v
retrieving revision 1.5
diff -u -p -r1.5 headers.c
--- dlls/./msvcrt/tests/headers.c 8 Sep 2004 19:05:28 -0000 1.5
+++ dlls/./msvcrt/tests/headers.c 20 Jun 2005 12:45:22 -0000
@@ -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)
/************* Checking types ***************/
-void test_types()
+void test_types(void)
{
CHECK_TYPE(wchar_t);
CHECK_TYPE(wint_t);
@@ -97,7 +97,7 @@ void test_types()
}
/************* Checking structs ***************/
-void test_structs()
+void test_structs(void)
{
CHECK_STRUCT(tm);
CHECK_FIELD(tm, tm_sec);
@@ -294,7 +294,7 @@ void test_structs()
}
/************* Checking defines ***************/
-void test_defines()
+void test_defines(void)
{
CHECK_DEF("WEOF", WEOF, MSVCRT_WEOF);
CHECK_DEF("EOF", EOF, MSVCRT_EOF);
-------------- next part --------------
Index: dlls/./ntdll/tests/large_int.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/tests/large_int.c,v
retrieving revision 1.8
diff -u -p -r1.8 large_int.c
--- dlls/./ntdll/tests/large_int.c 17 Dec 2004 19:41:55 -0000 1.8
+++ dlls/./ntdll/tests/large_int.c 20 Jun 2005 12:45:25 -0000
@@ -35,7 +35,7 @@ static NTSTATUS (WINAPI *pRtlLargeIntege
static NTSTATUS (WINAPI *pRtlUnicodeStringToAnsiString)(STRING *, const UNICODE_STRING *, BOOLEAN);
-static void InitFunctionPtrs()
+static void InitFunctionPtrs(void)
{
hntdll = LoadLibraryA("ntdll.dll");
ok(hntdll != 0, "LoadLibrary failed\n");
Index: dlls/./ntdll/tests/reg.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/tests/reg.c,v
retrieving revision 1.4
diff -u -p -r1.4 reg.c
--- dlls/./ntdll/tests/reg.c 11 Apr 2005 14:21:33 -0000 1.4
+++ dlls/./ntdll/tests/reg.c 20 Jun 2005 12:45:25 -0000
@@ -341,7 +341,7 @@ static void test_RtlCheckRegistryKey(voi
ok(status == STATUS_SUCCESS, "RtlCheckRegistryKey with RTL_REGISTRY_ABSOLUTE and RTL_REGISTRY_OPTIONAL: 0x%08lx\n", status);
}
-static void test_NtDeleteKey()
+static void test_NtDeleteKey(void)
{
NTSTATUS status;
HANDLE hkey;
-------------- next part --------------
Index: dlls/./ole32/compobj.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/compobj.c,v
retrieving revision 1.152
diff -u -p -r1.152 compobj.c
--- dlls/./ole32/compobj.c 20 Jun 2005 10:33:17 -0000 1.152
+++ dlls/./ole32/compobj.c 20 Jun 2005 12:45:26 -0000
@@ -197,7 +197,7 @@ static void COMPOBJ_UninitProcess( void
UnregisterClassW(wszAptWinClass, OLE32_hInstance);
}
-static void COM_TlsDestroy()
+static void COM_TlsDestroy(void)
{
struct oletls *info = NtCurrentTeb()->ReservedForOle;
if (info)
Index: dlls/./ole32/ifs.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/ifs.c,v
retrieving revision 1.50
diff -u -p -r1.50 ifs.c
--- dlls/./ole32/ifs.c 6 Jun 2005 19:50:37 -0000 1.50
+++ dlls/./ole32/ifs.c 20 Jun 2005 12:45:26 -0000
@@ -501,7 +501,7 @@ static void WINAPI IMallocSpy_fnPostHeap
TRACE ("(%p)->()\n", This);
}
-static void MallocSpyDumpLeaks() {
+static void MallocSpyDumpLeaks(void) {
TRACE("leaks: %lu\n", Malloc32.SpyedAllocationsLeft);
}
Index: dlls/./ole32/tests/marshal.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/tests/marshal.c,v
retrieving revision 1.23
diff -u -p -r1.23 marshal.c
--- dlls/./ole32/tests/marshal.c 6 Jun 2005 19:50:37 -0000 1.23
+++ dlls/./ole32/tests/marshal.c 20 Jun 2005 12:45:26 -0000
@@ -37,7 +37,7 @@ HRESULT (WINAPI * pCoInitializeEx)(LPVOI
#define ok_no_locks() ok(cLocks == 0, "Number of locks should be 0, but actually is %ld\n", cLocks)
#define ok_ole_success(hr, func) ok(hr == S_OK, #func " failed with error 0x%08lx\n", hr)
-static void test_CoGetPSClsid()
+static void test_CoGetPSClsid(void)
{
HRESULT hr;
CLSID clsid;
@@ -60,12 +60,12 @@ static void test_CoGetPSClsid()
static const LARGE_INTEGER ullZero;
static LONG cLocks;
-static void LockModule()
+static void LockModule(void)
{
InterlockedIncrement(&cLocks);
}
-static void UnlockModule()
+static void UnlockModule(void)
{
InterlockedDecrement(&cLocks);
}
@@ -273,7 +273,7 @@ static void end_host_object(DWORD tid, H
/* tests failure case of interface not having a marshaler specified in the
* registry */
-static void test_no_marshaler()
+static void test_no_marshaler(void)
{
IStream *pStream;
HRESULT hr;
@@ -293,7 +293,7 @@ static void test_no_marshaler()
}
/* tests normal marshal and then release without unmarshaling */
-static void test_normal_marshal_and_release()
+static void test_normal_marshal_and_release(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -316,7 +316,7 @@ static void test_normal_marshal_and_rele
}
/* tests success case of a same-thread marshal and unmarshal */
-static void test_normal_marshal_and_unmarshal()
+static void test_normal_marshal_and_unmarshal(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -344,7 +344,7 @@ static void test_normal_marshal_and_unma
}
/* tests failure case of unmarshaling a freed object */
-static void test_marshal_and_unmarshal_invalid()
+static void test_marshal_and_unmarshal_invalid(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -387,7 +387,7 @@ static void test_marshal_and_unmarshal_i
}
/* tests success case of an interthread marshal */
-static void test_interthread_marshal_and_unmarshal()
+static void test_interthread_marshal_and_unmarshal(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -418,7 +418,7 @@ static void test_interthread_marshal_and
}
/* tests that stubs are released when the containing apartment is destroyed */
-static void test_marshal_stub_apartment_shutdown()
+static void test_marshal_stub_apartment_shutdown(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -451,7 +451,7 @@ static void test_marshal_stub_apartment_
}
/* tests that proxies are released when the containing apartment is destroyed */
-static void test_marshal_proxy_apartment_shutdown()
+static void test_marshal_proxy_apartment_shutdown(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -488,7 +488,7 @@ static void test_marshal_proxy_apartment
}
/* tests that proxies are released when the containing mta apartment is destroyed */
-static void test_marshal_proxy_mta_apartment_shutdown()
+static void test_marshal_proxy_mta_apartment_shutdown(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -555,7 +555,7 @@ static DWORD CALLBACK no_couninitialize_
}
/* tests apartment that an apartment is released if the owning thread exits */
-static void test_no_couninitialize()
+static void test_no_couninitialize(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -600,7 +600,7 @@ static void test_no_couninitialize()
}
/* tests success case of a same-thread table-weak marshal, unmarshal, unmarshal */
-static void test_tableweak_marshal_and_unmarshal_twice()
+static void test_tableweak_marshal_and_unmarshal_twice(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -641,7 +641,7 @@ static void test_tableweak_marshal_and_u
}
/* tests releasing after unmarshaling one object */
-static void test_tableweak_marshal_releasedata1()
+static void test_tableweak_marshal_releasedata1(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -691,7 +691,7 @@ static void test_tableweak_marshal_relea
}
/* tests releasing after unmarshaling one object */
-static void test_tableweak_marshal_releasedata2()
+static void test_tableweak_marshal_releasedata2(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -730,7 +730,7 @@ static void test_tableweak_marshal_relea
}
/* tests success case of a same-thread table-strong marshal, unmarshal, unmarshal */
-static void test_tablestrong_marshal_and_unmarshal_twice()
+static void test_tablestrong_marshal_and_unmarshal_twice(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -779,7 +779,7 @@ static void test_tablestrong_marshal_and
}
/* tests CoLockObjectExternal */
-static void test_lock_object_external()
+static void test_lock_object_external(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -808,7 +808,7 @@ static void test_lock_object_external()
}
/* tests disconnecting stubs */
-static void test_disconnect_stub()
+static void test_disconnect_stub(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -837,7 +837,7 @@ static void test_disconnect_stub()
}
/* tests failure case of a same-thread marshal and unmarshal twice */
-static void test_normal_marshal_and_unmarshal_twice()
+static void test_normal_marshal_and_unmarshal_twice(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -874,7 +874,7 @@ static void test_normal_marshal_and_unma
}
/* tests success case of marshaling and unmarshaling an HRESULT */
-static void test_hresult_marshaling()
+static void test_hresult_marshaling(void)
{
HRESULT hr;
HRESULT hr_marshaled = 0;
@@ -927,7 +927,7 @@ static DWORD CALLBACK bad_thread_proc(LP
}
/* tests failure case of a using a proxy in the wrong apartment */
-static void test_proxy_used_in_wrong_thread()
+static void test_proxy_used_in_wrong_thread(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -1047,7 +1047,7 @@ static const IMessageFilterVtbl MessageF
static IMessageFilter MessageFilter = { &MessageFilter_Vtbl };
-static void test_message_filter()
+static void test_message_filter(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -1094,7 +1094,7 @@ static void test_message_filter()
}
/* test failure case of trying to unmarshal from bad stream */
-static void test_bad_marshal_stream()
+static void test_bad_marshal_stream(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -1119,7 +1119,7 @@ static void test_bad_marshal_stream()
}
/* tests that proxies implement certain interfaces */
-static void test_proxy_interfaces()
+static void test_proxy_interfaces(void)
{
HRESULT hr;
IStream *pStream = NULL;
@@ -1273,7 +1273,7 @@ static LRESULT CALLBACK window_proc(HWND
}
}
-static void test_message_reentrancy()
+static void test_message_reentrancy(void)
{
WNDCLASS wndclass;
MSG msg;
@@ -1540,7 +1540,7 @@ static void test_out_of_process_com()
}
#endif
-static void test_ROT()
+static void test_ROT(void)
{
static const WCHAR wszFileName[] = {'B','E','2','0','E','2','F','5','-',
'1','9','0','3','-','4','A','A','E','-','B','1','A','F','-',
Index: dlls/./ole32/tests/propvariant.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/tests/propvariant.c,v
retrieving revision 1.7
diff -u -p -r1.7 propvariant.c
--- dlls/./ole32/tests/propvariant.c 13 Jun 2005 12:10:55 -0000 1.7
+++ dlls/./ole32/tests/propvariant.c 20 Jun 2005 12:45:26 -0000
@@ -126,7 +126,7 @@ static const char* wine_vtypes[VT_CLSID+
"VT_STREAMED_OBJECT","VT_STORED_OBJECT","VT_BLOB_OBJECT","VT_CF","VT_CLSID"
};
-static void test_validtypes()
+static void test_validtypes(void)
{
PROPVARIANT propvar;
HRESULT hr;
@@ -197,7 +197,7 @@ static void test_validtypes()
}
}
-static void test_copy()
+static void test_copy(void)
{
static const char szTestString[] = "Test String";
static const WCHAR wszTestString[] = {'T','e','s','t',' ','S','t','r','i','n','g',0};
-------------- next part --------------
Index: dlls/./oleaut32/tests/safearray.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/tests/safearray.c,v
retrieving revision 1.23
diff -u -p -r1.23 safearray.c
--- dlls/./oleaut32/tests/safearray.c 6 Jun 2005 19:50:37 -0000 1.23
+++ dlls/./oleaut32/tests/safearray.c 20 Jun 2005 12:45:27 -0000
@@ -85,7 +85,7 @@ typedef struct IRecordInfoImpl
static const IRecordInfoVtbl IRecordInfoImpl_VTable;
-static IRecordInfoImpl *IRecordInfoImpl_Construct()
+static IRecordInfoImpl *IRecordInfoImpl_Construct(void)
{
IRecordInfoImpl *rec;
-------------- next part --------------
Index: dlls/./qcap/qcap_main.c
===================================================================
RCS file: /home/wine/wine/dlls/qcap/qcap_main.c,v
retrieving revision 1.8
diff -u -p -r1.8 qcap_main.c
--- dlls/./qcap/qcap_main.c 6 Jun 2005 19:50:37 -0000 1.8
+++ dlls/./qcap/qcap_main.c 20 Jun 2005 12:45:29 -0000
@@ -171,7 +171,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL,
/***********************************************************************
* DllRegisterServer (QCAP.@)
*/
-HRESULT WINAPI QCAP_DllRegisterServer()
+HRESULT WINAPI QCAP_DllRegisterServer(void)
{
TRACE("()\n");
-------------- next part --------------
Index: dlls/./quartz/tests/filtergraph.c
===================================================================
RCS file: /home/wine/wine/dlls/quartz/tests/filtergraph.c,v
retrieving revision 1.6
diff -u -p -r1.6 filtergraph.c
--- dlls/./quartz/tests/filtergraph.c 25 Mar 2005 10:25:24 -0000 1.6
+++ dlls/./quartz/tests/filtergraph.c 20 Jun 2005 12:45:30 -0000
@@ -31,13 +31,13 @@ static const WCHAR file[] = {'t','e','s'
IGraphBuilder* pgraph;
-static int createfiltergraph()
+static int createfiltergraph(void)
{
return S_OK == CoCreateInstance(
&CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, &IID_IGraphBuilder, (LPVOID*)&pgraph);
}
-static void renderfile()
+static void renderfile(void)
{
HRESULT hr;
@@ -45,7 +45,7 @@ static void renderfile()
ok(hr==S_OK, "RenderFile returned: %lx\n", hr);
}
-static void rungraph()
+static void rungraph(void)
{
HRESULT hr;
IMediaControl* pmc;
@@ -77,7 +77,7 @@ static void rungraph()
ok(hr==1, "Releasing mediacontrol returned: %lx\n", hr);
}
-static void releasefiltergraph()
+static void releasefiltergraph(void)
{
HRESULT hr;
-------------- next part --------------
Index: dlls/./shdocvw/shdocvw.h
===================================================================
RCS file: /home/wine/wine/dlls/shdocvw/shdocvw.h,v
retrieving revision 1.13
diff -u -p -r1.13 shdocvw.h
--- dlls/./shdocvw/shdocvw.h 12 Jun 2005 10:42:03 -0000 1.13
+++ dlls/./shdocvw/shdocvw.h 20 Jun 2005 12:45:32 -0000
@@ -165,7 +165,7 @@ typedef struct
* Dll lifetime tracking declaration for shdocvw.dll
*/
extern LONG SHDOCVW_refCount;
-static inline void SHDOCVW_LockModule() { InterlockedIncrement( &SHDOCVW_refCount ); }
-static inline void SHDOCVW_UnlockModule() { InterlockedDecrement( &SHDOCVW_refCount ); }
+static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount ); }
+static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount ); }
#endif /* __WINE_SHDOCVW_H */
Index: dlls/./shdocvw/shdocvw_main.c
===================================================================
RCS file: /home/wine/wine/dlls/shdocvw/shdocvw_main.c,v
retrieving revision 1.29
diff -u -p -r1.29 shdocvw_main.c
--- dlls/./shdocvw/shdocvw_main.c 13 Jun 2005 18:56:01 -0000 1.29
+++ dlls/./shdocvw/shdocvw_main.c 20 Jun 2005 12:45:32 -0000
@@ -388,7 +388,7 @@ dlProc ( HWND hwndDlg, UINT uMsg, WPARAM
}
}
-static BOOL SHDOCVW_TryDownloadMozillaControl()
+static BOOL SHDOCVW_TryDownloadMozillaControl(void)
{
DWORD r;
WCHAR buf[0x100];
@@ -414,7 +414,7 @@ static BOOL SHDOCVW_TryDownloadMozillaCo
return TRUE;
}
-static BOOL SHDOCVW_TryLoadMozillaControl()
+static BOOL SHDOCVW_TryLoadMozillaControl(void)
{
WCHAR szPath[MAX_PATH];
BOOL bTried = FALSE;
-------------- next part --------------
Index: dlls/./shell32/tests/shelllink.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/tests/shelllink.c,v
retrieving revision 1.6
diff -u -p -r1.6 shelllink.c
--- dlls/./shell32/tests/shelllink.c 1 Jun 2005 11:04:26 -0000 1.6
+++ dlls/./shell32/tests/shelllink.c 20 Jun 2005 12:45:33 -0000
@@ -83,7 +83,7 @@ static LPITEMIDLIST path_to_pidl(const c
* Test manipulation of an IShellLink's properties.
*/
-static void test_get_set()
+static void test_get_set(void)
{
HRESULT r;
IShellLinkA *sl;
@@ -459,7 +459,7 @@ static void check_lnk_(int line, const W
IShellLinkA_Release(sl);
}
-static void test_load_save()
+static void test_load_save(void)
{
lnk_desc_t desc;
char mypath[MAX_PATH];
-------------- next part --------------
Index: dlls/./shlwapi/tests/clist.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/tests/clist.c,v
retrieving revision 1.11
diff -u -p -r1.11 clist.c
--- dlls/./shlwapi/tests/clist.c 16 Mar 2005 19:47:37 -0000 1.11
+++ dlls/./shlwapi/tests/clist.c 20 Jun 2005 12:45:34 -0000
@@ -212,7 +212,7 @@ static HRESULT (WINAPI *pSHLWAPI_213)(_I
static HRESULT (WINAPI *pSHLWAPI_214)(_IDummyStream*,ULARGE_INTEGER*);
-static void InitFunctionPtrs()
+static void InitFunctionPtrs(void)
{
SHLWAPI_hshlwapi = LoadLibraryA("shlwapi.dll");
ok(SHLWAPI_hshlwapi != 0, "LoadLibrary failed\n");
Index: dlls/./shlwapi/tests/shreg.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/tests/shreg.c,v
retrieving revision 1.27
diff -u -p -r1.27 shreg.c
--- dlls/./shlwapi/tests/shreg.c 18 May 2005 15:33:20 -0000 1.27
+++ dlls/./shlwapi/tests/shreg.c 20 Jun 2005 12:45:34 -0000
@@ -321,7 +321,7 @@ static void test_SHCopyKey(void)
RegCloseKey(hKeyDst);
}
-static void test_SHDeleteKey()
+static void test_SHDeleteKey(void)
{
HKEY hKeyTest, hKeyS;
DWORD dwRet;
-------------- next part --------------
Index: dlls/./user/combo.c
===================================================================
RCS file: /home/wine/wine/dlls/user/combo.c,v
retrieving revision 1.11
diff -u -p -r1.11 combo.c
--- dlls/./user/combo.c 15 Jun 2005 10:23:54 -0000 1.11
+++ dlls/./user/combo.c 20 Jun 2005 12:45:37 -0000
@@ -112,7 +112,7 @@ const struct builtin_class_descr COMBO_b
*
* Load combo button bitmap.
*/
-static BOOL COMBO_Init()
+static BOOL COMBO_Init(void)
{
HDC hDC;
Index: dlls/./user/tests/edit.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/edit.c,v
retrieving revision 1.8
diff -u -p -r1.8 edit.c
--- dlls/./user/tests/edit.c 15 Jun 2005 10:21:19 -0000 1.8
+++ dlls/./user/tests/edit.c 20 Jun 2005 12:45:37 -0000
@@ -472,7 +472,7 @@ static void test_edit_control_2(void)
DestroyWindow (hwndMain);
}
-static void ET2_check_change() {
+static void ET2_check_change(void) {
char szLocalString[MAXLEN];
/* This EN_UPDATE handler changes any 'foo' to 'bar'. */
GetWindowText(hwndET2, szLocalString, MAXLEN);
-------------- next part --------------
Index: dlls/./wineps/afm.c
===================================================================
RCS file: /home/wine/wine/dlls/wineps/afm.c,v
retrieving revision 1.33
diff -u -p -r1.33 afm.c
--- dlls/./wineps/afm.c 24 Jun 2002 23:40:01 -0000 1.33
+++ dlls/./wineps/afm.c 20 Jun 2005 12:45:42 -0000
@@ -248,7 +248,7 @@ SHORT PSDRV_CalcAvgCharWidth(const AFM *
*
*/
-static BOOL AddBuiltinAFMs()
+static BOOL AddBuiltinAFMs(void)
{
const AFM *const *afm = PSDRV_BuiltinAFMs;
-------------- next part --------------
Index: dlls/./winsock/tests/protocol.c
===================================================================
RCS file: /home/wine/wine/dlls/winsock/tests/protocol.c,v
retrieving revision 1.2
diff -u -p -r1.2 protocol.c
--- dlls/./winsock/tests/protocol.c 14 Feb 2005 11:02:23 -0000 1.2
+++ dlls/./winsock/tests/protocol.c 20 Jun 2005 12:45:45 -0000
@@ -27,7 +27,7 @@
#include "wine/test.h"
-static void test_WSAEnumProtocolsA()
+static void test_WSAEnumProtocolsA(void)
{
INT ret;
DWORD len = 0;
@@ -62,7 +62,7 @@ static void test_WSAEnumProtocolsA()
}
}
-static void test_WSAEnumProtocolsW()
+static void test_WSAEnumProtocolsW(void)
{
INT ret;
DWORD len = 0;
-------------- next part --------------
Index: dlls/./winspool/info.c
===================================================================
RCS file: /home/wine/wine/dlls/winspool/info.c,v
retrieving revision 1.106
diff -u -p -r1.106 info.c
--- dlls/./winspool/info.c 13 Jun 2005 18:56:00 -0000 1.106
+++ dlls/./winspool/info.c 20 Jun 2005 12:45:44 -0000
@@ -3179,7 +3179,7 @@ static BOOL WINSPOOL_ComPortExists( LPCS
return TRUE;
}
-static DWORD WINSPOOL_CountSerialPorts()
+static DWORD WINSPOOL_CountSerialPorts(void)
{
CHAR name[6];
DWORD n = 0, i;
-------------- next part --------------
Index: dlls/./wintab32/context.c
===================================================================
RCS file: /home/wine/wine/dlls/wintab32/context.c,v
retrieving revision 1.11
diff -u -p -r1.11 context.c
--- dlls/./wintab32/context.c 24 May 2005 12:34:29 -0000 1.11
+++ dlls/./wintab32/context.c 20 Jun 2005 12:45:44 -0000
@@ -120,7 +120,7 @@ static LPOPENCONTEXT TABLET_FindOpenCont
return NULL;
}
-static void LoadTablet()
+static void LoadTablet(void)
{
TRACE("Initilizing the tablet to hwnd %p\n",hwndDefault);
gLoaded= TRUE;
More information about the wine-patches
mailing list