dlls: fix some -Wstrict-prototypes warnings
Stefan Huehner
stefan at huehner.org
Thu Jun 16 08:27:30 CDT 2005
Hi,
next patch in series to fix -Wstrict-prototypes warnings.
ChangeLog:
- fix some -Wstrict-prototypes warnings
Regards,
Stefan
-------------- next part --------------
Index: dlls/comctl32/updown.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/updown.c,v
retrieving revision 1.68
diff -u -p -r1.68 updown.c
--- dlls/comctl32/updown.c 11 May 2005 12:01:27 -0000 1.68
+++ dlls/comctl32/updown.c 16 Jun 2005 13:22:05 -0000
@@ -238,7 +238,7 @@ static BOOL UPDOWN_GetArrowFromPoint (UP
* UPDOWN_GetThousandSep
* Returns the thousand sep. If an error occurs, it returns ','.
*/
-static WCHAR UPDOWN_GetThousandSep()
+static WCHAR UPDOWN_GetThousandSep(void)
{
WCHAR sep[2];
Index: dlls/comctl32/tests/treeview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/tests/treeview.c,v
retrieving revision 1.1
diff -u -p -r1.1 treeview.c
--- dlls/comctl32/tests/treeview.c 13 Jun 2005 12:23:01 -0000 1.1
+++ dlls/comctl32/tests/treeview.c 16 Jun 2005 13:22:05 -0000
@@ -38,7 +38,7 @@ static HTREEITEM hRoot, hChild;
static int pos = 0;
static char sequence[256];
-static void Clear()
+static void Clear(void)
{
pos = 0;
sequence[0] = '\0';
@@ -67,7 +67,7 @@ static void IdentifyItem(HTREEITEM hItem
AddItem('?');
}
-static void FillRoot()
+static void FillRoot(void)
{
TVINSERTSTRUCTA ins;
@@ -92,7 +92,7 @@ static void FillRoot()
ok(!strcmp(sequence, "AB."), "Item creation");
}
-static void DoTest1()
+static void DoTest1(void)
{
TreeView_SelectItem(hTree, NULL);
Clear();
@@ -110,7 +110,7 @@ static void DoTest1()
ok(!strcmp(sequence, "1(nR)nR23(Rn)Rn45(nR)nR."), "root-none select test");
}
-static void DoTest2()
+static void DoTest2(void)
{
TreeView_SelectItem(hTree, NULL);
Clear();
-------------- next part --------------
Index: dlls/mshtml/view.c
===================================================================
RCS file: /home/wine/wine/dlls/mshtml/view.c,v
retrieving revision 1.4
diff -u -p -r1.4 view.c
--- dlls/mshtml/view.c 1 Jun 2005 19:57:42 -0000 1.4
+++ dlls/mshtml/view.c 16 Jun 2005 13:21:55 -0000
@@ -76,7 +76,7 @@ static LRESULT WINAPI serverwnd_proc(HWN
return DefWindowProcW(hwnd, msg, wParam, lParam);
}
-static void register_serverwnd_class()
+static void register_serverwnd_class(void)
{
static WNDCLASSEXW wndclass = {
sizeof(WNDCLASSEXW),
-------------- next part --------------
Index: dlls/ntdll/tests/rtl.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/tests/rtl.c,v
retrieving revision 1.14
diff -u -p -r1.14 rtl.c
--- dlls/ntdll/tests/rtl.c 13 Jun 2005 10:03:33 -0000 1.14
+++ dlls/ntdll/tests/rtl.c 16 Jun 2005 13:22:48 -0000
@@ -813,7 +813,7 @@ static void test_RtlAreAnyAccessesGrante
} /* for */
}
-static void test_RtlComputeCrc32()
+static void test_RtlComputeCrc32(void)
{
DWORD crc = 0;
@@ -837,7 +837,7 @@ static inline void RtlpMakeHandleAllocat
*AllocatedBit = *AllocatedBit | 1;
}
-static void test_HandleTables()
+static void test_HandleTables(void)
{
BOOLEAN result;
NTSTATUS status;
Index: dlls/ntdll/tests/rtlbitmap.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/tests/rtlbitmap.c,v
retrieving revision 1.9
diff -u -p -r1.9 rtlbitmap.c
--- dlls/ntdll/tests/rtlbitmap.c 1 Sep 2004 01:29:18 -0000 1.9
+++ dlls/ntdll/tests/rtlbitmap.c 16 Jun 2005 13:22:48 -0000
@@ -48,7 +48,7 @@ static ULONG (WINAPI *pRtlFindLongestRun
static BYTE buff[256];
static RTL_BITMAP bm;
-static void InitFunctionPtrs()
+static void InitFunctionPtrs(void)
{
hntdll = LoadLibraryA("ntdll.dll");
ok(hntdll != 0, "LoadLibrary failed\n");
@@ -103,7 +103,7 @@ static void test_RtlSetAllBits(void)
ok(buff[4] == 0, "set more than rounded size\n");
}
-static void test_RtlClearAllBits()
+static void test_RtlClearAllBits(void)
{
if (!pRtlClearAllBits)
return;
@@ -116,7 +116,7 @@ static void test_RtlClearAllBits()
ok(buff[4] == 0xff, "cleared more than rounded size\n");
}
-static void test_RtlSetBits()
+static void test_RtlSetBits(void)
{
if (!pRtlSetBits)
return;
@@ -144,7 +144,7 @@ static void test_RtlSetBits()
ok(buff[sizeof(buff)-1] == 0x80, "didn't set last bit\n");
}
-static void test_RtlClearBits()
+static void test_RtlClearBits(void)
{
if (!pRtlClearBits)
return;
@@ -172,7 +172,7 @@ static void test_RtlClearBits()
ok(buff[sizeof(buff)-1] == 0x7f, "didn't set last bit\n");
}
-static void test_RtlCheckBit()
+static void test_RtlCheckBit(void)
{
BOOLEAN bRet;
@@ -196,7 +196,7 @@ static void test_RtlCheckBit()
ok (!bRet, "found non set bit\n");
}
-static void test_RtlAreBitsSet()
+static void test_RtlAreBitsSet(void)
{
BOOLEAN bRet;
@@ -241,7 +241,7 @@ static void test_RtlAreBitsSet()
ok(bRet, "didn't find last bit\n");
}
-static void test_RtlAreBitsClear()
+static void test_RtlAreBitsClear(void)
{
BOOLEAN bRet;
@@ -286,7 +286,7 @@ static void test_RtlAreBitsClear()
ok(bRet, "didn't find last bit\n");
}
-static void test_RtlNumberOfSetBits()
+static void test_RtlNumberOfSetBits(void)
{
ULONG ulCount;
@@ -316,7 +316,7 @@ static void test_RtlNumberOfSetBits()
ok(ulCount == 8+1+33+1, "count wrong\n");
}
-static void test_RtlNumberOfClearBits()
+static void test_RtlNumberOfClearBits(void)
{
ULONG ulCount;
@@ -347,7 +347,7 @@ static void test_RtlNumberOfClearBits()
}
/* Note: this tests RtlFindSetBits also */
-static void test_RtlFindSetBitsAndClear()
+static void test_RtlFindSetBitsAndClear(void)
{
BOOLEAN bRet;
ULONG ulPos;
@@ -379,7 +379,7 @@ static void test_RtlFindSetBitsAndClear(
}
/* Note: this tests RtlFindClearBits also */
-static void test_RtlFindClearBitsAndSet()
+static void test_RtlFindClearBitsAndSet(void)
{
BOOLEAN bRet;
ULONG ulPos;
@@ -410,7 +410,7 @@ static void test_RtlFindClearBitsAndSet(
}
}
-static void test_RtlFindMostSignificantBit()
+static void test_RtlFindMostSignificantBit(void)
{
int i;
CCHAR cPos;
@@ -437,7 +437,7 @@ static void test_RtlFindMostSignificantB
ok (cPos == -1, "found bit when not set\n");
}
-static void test_RtlFindLeastSignificantBit()
+static void test_RtlFindLeastSignificantBit(void)
{
int i;
CCHAR cPos;
@@ -463,7 +463,7 @@ static void test_RtlFindLeastSignificant
}
/* Note: Also tests RtlFindLongestRunSet() */
-static void test_RtlFindSetRuns()
+static void test_RtlFindSetRuns(void)
{
RTL_BITMAP_RUN runs[16];
ULONG ulCount;
@@ -537,7 +537,7 @@ static void test_RtlFindSetRuns()
}
/* Note: Also tests RtlFindLongestRunClear() */
-static void test_RtlFindClearRuns()
+static void test_RtlFindClearRuns(void)
{
RTL_BITMAP_RUN runs[16];
ULONG ulCount;
-------------- next part --------------
Index: dlls/rsabase/tests/rsabase.c
===================================================================
RCS file: /home/wine/wine/dlls/rsabase/tests/rsabase.c,v
retrieving revision 1.1
diff -u -p -r1.1 rsabase.c
--- dlls/rsabase/tests/rsabase.c 30 Jul 2004 00:06:54 -0000 1.1
+++ dlls/rsabase/tests/rsabase.c 16 Jun 2005 13:23:43 -0000
@@ -58,7 +58,7 @@ static void clean_up_environment(void)
CryptAcquireContext(&hProv, szContainer, szProvider, PROV_RSA_FULL, CRYPT_DELETEKEYSET);
}
-static void test_gen_random()
+static void test_gen_random(void)
{
BOOL result;
BYTE rnd1[16], rnd2[16];
Index: dlls/rsaenh/tests/rsaenh.c
===================================================================
RCS file: /home/wine/wine/dlls/rsaenh/tests/rsaenh.c,v
retrieving revision 1.10
diff -u -p -r1.10 rsaenh.c
--- dlls/rsaenh/tests/rsaenh.c 15 Jun 2005 10:20:53 -0000 1.10
+++ dlls/rsaenh/tests/rsaenh.c 16 Jun 2005 13:23:43 -0000
@@ -91,7 +91,7 @@ static void clean_up_environment(void)
CryptAcquireContext(&hProv, szContainer, szProvider, PROV_RSA_FULL, CRYPT_DELETEKEYSET);
}
-static void test_prov()
+static void test_prov(void)
{
BOOL result;
DWORD dwLen, dwInc;
@@ -105,7 +105,7 @@ static void test_prov()
ok(result && dwInc==8, "%08lx, %ld\n", GetLastError(), dwInc);
}
-static void test_gen_random()
+static void test_gen_random(void)
{
BOOL result;
BYTE rnd1[16], rnd2[16];
@@ -275,7 +275,7 @@ static void test_hashes(void)
ok(result, "%08lx\n", GetLastError());
}
-static void test_block_cipher_modes()
+static void test_block_cipher_modes(void)
{
static const BYTE plain[23] = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b,
@@ -357,7 +357,7 @@ static void test_block_cipher_modes()
ok(!result && GetLastError() == NTE_BAD_ALGID, "%08lx\n", GetLastError());
}
-static void test_3des112()
+static void test_3des112(void)
{
HCRYPTKEY hKey;
BOOL result;
@@ -385,7 +385,7 @@ static void test_3des112()
ok(result, "%08lx\n", GetLastError());
}
-static void test_des()
+static void test_des(void)
{
HCRYPTKEY hKey;
BOOL result;
@@ -421,7 +421,7 @@ static void test_des()
ok(result, "%08lx\n", GetLastError());
}
-static void test_3des()
+static void test_3des(void)
{
HCRYPTKEY hKey;
BOOL result;
@@ -450,7 +450,7 @@ static void test_3des()
ok(result, "%08lx\n", GetLastError());
}
-static void test_rc2()
+static void test_rc2(void)
{
static const BYTE rc2encrypted[16] = {
0x02, 0x34, 0x7d, 0xf6, 0x1d, 0xc5, 0x9b, 0x8b,
@@ -538,7 +538,7 @@ static void test_rc2()
}
}
-static void test_rc4()
+static void test_rc4(void)
{
static const BYTE rc4[16] = {
0x17, 0x0c, 0x44, 0x8e, 0xae, 0x90, 0xcd, 0xb0,
@@ -609,7 +609,7 @@ static void test_rc4()
}
}
-static void test_hmac() {
+static void test_hmac(void) {
HCRYPTKEY hKey;
HCRYPTHASH hHash;
BOOL result;
@@ -652,7 +652,7 @@ static void test_hmac() {
ok(!result && GetLastError() == NTE_BAD_KEY, "%08lx\n", GetLastError());
}
-static void test_mac() {
+static void test_mac(void) {
HCRYPTKEY hKey;
HCRYPTHASH hHash;
BOOL result;
@@ -699,7 +699,7 @@ static void test_mac() {
ok(result, "%08lx\n", GetLastError());
}
-static void test_import_private()
+static void test_import_private(void)
{
DWORD dwLen;
HCRYPTKEY hKeyExchangeKey, hSessionKey;
@@ -837,7 +837,7 @@ static void test_import_private()
if (!result) return;
}
-static void test_verify_signature() {
+static void test_verify_signature(void) {
HCRYPTHASH hHash;
HCRYPTKEY hPubSignKey;
BYTE abData[] = "Wine rocks!";
More information about the wine-patches
mailing list