From 9ee2ac33d34d200ac596eca14945447d0b0b56c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Fri, 4 Sep 2015 00:21:03 +0000 Subject: [PATCH] [few apps][LOGONUI][FREELDR][MSGINA][BLUE] VOIDify function paramater lists when they indeed don't take any arguments. svn path=/trunk/; revision=68974 --- reactos/base/applications/kbswitch/kbswitch.c | 8 ++++---- reactos/base/setup/usetup/cabinet.c | 2 +- reactos/base/system/logonui/logonui.c | 2 +- reactos/boot/freeldr/freeldr/arch/amd64/winldr.c | 8 ++++---- reactos/boot/freeldr/freeldr/arch/i386/winldr.c | 8 ++++---- reactos/boot/freeldr/freeldr/arch/i386/xboxvideo.c | 4 ++-- reactos/boot/freeldr/freeldr/machine.c | 4 ++-- reactos/boot/freeldr/freeldr/mm/meminit.c | 2 +- reactos/boot/freeldr/freeldr/windows/winldr.c | 2 +- reactos/dll/win32/msgina/msgina.c | 2 +- reactos/drivers/setup/blue/font.c | 4 ++-- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/reactos/base/applications/kbswitch/kbswitch.c b/reactos/base/applications/kbswitch/kbswitch.c index 09534f61f6f..fac21efb0a0 100644 --- a/reactos/base/applications/kbswitch/kbswitch.c +++ b/reactos/base/applications/kbswitch/kbswitch.c @@ -300,7 +300,7 @@ ActivateLayout(HWND hwnd, ULONG uLayoutNum) } static HMENU -BuildLeftPopupMenu() +BuildLeftPopupMenu(VOID) { HMENU hMenu; HKEY hKey; @@ -334,7 +334,7 @@ BuildLeftPopupMenu() } BOOL -SetHooks() +SetHooks(VOID) { hDllLib = LoadLibrary(_T("kbsdll.dll")); if (!hDllLib) return FALSE; @@ -349,14 +349,14 @@ SetHooks() } VOID -DeleteHooks() +DeleteHooks(VOID) { if (KbSwitchDeleteHooks) KbSwitchDeleteHooks(); if (hDllLib) FreeLibrary(hDllLib); } ULONG -GetNextLayout() +GetNextLayout(VOID) { TCHAR szLayoutNum[3 + 1], szLayoutID[CCH_LAYOUT_ID + 1]; ULONG Ret = ulCurrentLayoutNum; diff --git a/reactos/base/setup/usetup/cabinet.c b/reactos/base/setup/usetup/cabinet.c index 1d16ac0d956..b738abcb239 100644 --- a/reactos/base/setup/usetup/cabinet.c +++ b/reactos/base/setup/usetup/cabinet.c @@ -804,7 +804,7 @@ CabinetFindNext(PCAB_SEARCH Search) #if 0 int -Validate() +Validate(VOID) { return (int)RtlValidateHeap(ProcessHeap, 0, 0); } diff --git a/reactos/base/system/logonui/logonui.c b/reactos/base/system/logonui/logonui.c index 1f5cb1e9f91..77499408c6e 100644 --- a/reactos/base/system/logonui/logonui.c +++ b/reactos/base/system/logonui/logonui.c @@ -89,7 +89,7 @@ ParseCmdline(int argc, WCHAR* argv[]) } static VOID -Run() +Run(VOID) { HWND hDesktopWnd; HDC hdcDesktop, hdcMem; diff --git a/reactos/boot/freeldr/freeldr/arch/amd64/winldr.c b/reactos/boot/freeldr/freeldr/arch/amd64/winldr.c index 2e80cbac7fc..e0b8ffe1f8f 100644 --- a/reactos/boot/freeldr/freeldr/arch/amd64/winldr.c +++ b/reactos/boot/freeldr/freeldr/arch/amd64/winldr.c @@ -29,7 +29,7 @@ ULONG_PTR TssBasePage; /* FUNCTIONS **************************************************************/ BOOLEAN -MempAllocatePageTables() +MempAllocatePageTables(VOID) { TRACE(">>> MempAllocatePageTables\n"); @@ -203,7 +203,7 @@ MempUnmapPage(PFN_NUMBER Page) } VOID -WinLdrpMapApic() +WinLdrpMapApic(VOID) { BOOLEAN LocalAPIC; LARGE_INTEGER MsrValue; @@ -235,7 +235,7 @@ WinLdrpMapApic() } BOOLEAN -WinLdrMapSpecialPages() +WinLdrMapSpecialPages(VOID) { PHARDWARE_PTE PpeBase, PdeBase; @@ -418,7 +418,7 @@ void WinLdrSetupMachineDependent(PLOADER_PARAMETER_BLOCK LoaderBlock) VOID -MempDump() +MempDump(VOID) { } diff --git a/reactos/boot/freeldr/freeldr/arch/i386/winldr.c b/reactos/boot/freeldr/freeldr/arch/i386/winldr.c index 7bd23d97a4f..a6e1e90f9a5 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/winldr.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/winldr.c @@ -47,7 +47,7 @@ PVOID GdtIdt; /* FUNCTIONS **************************************************************/ BOOLEAN -MempAllocatePageTables() +MempAllocatePageTables(VOID) { ULONG NumPageTables, TotalSize; PUCHAR Buffer; @@ -222,7 +222,7 @@ MempUnmapPage(PFN_NUMBER Page) } VOID -WinLdrpMapApic() +WinLdrpMapApic(VOID) { BOOLEAN LocalAPIC; LARGE_INTEGER MsrValue; @@ -297,7 +297,7 @@ enum UltraVision_8x10Font = 0x12, }; -void WinLdrSetupSpecialDataPointers() +void WinLdrSetupSpecialDataPointers(VOID) { REGS BiosRegs; @@ -670,7 +670,7 @@ WinLdrSetProcessorContext(void) #if DBG VOID -MempDump() +MempDump(VOID) { ULONG *PDE_Addr=(ULONG *)PDE;//0xC0300000; int i, j; diff --git a/reactos/boot/freeldr/freeldr/arch/i386/xboxvideo.c b/reactos/boot/freeldr/freeldr/arch/i386/xboxvideo.c index 866db6633f3..cbb8b92c55a 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/xboxvideo.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/xboxvideo.c @@ -227,13 +227,13 @@ XboxVideoGetPaletteColor(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue) } VOID -XboxVideoSync() +XboxVideoSync(VOID) { /* Not supported */ } VOID -XboxBeep() +XboxBeep(VOID) { /* Call PC version */ PcBeep(); diff --git a/reactos/boot/freeldr/freeldr/machine.c b/reactos/boot/freeldr/freeldr/machine.c index d3a83fe3e27..25626b9b5a2 100644 --- a/reactos/boot/freeldr/freeldr/machine.c +++ b/reactos/boot/freeldr/freeldr/machine.c @@ -49,13 +49,13 @@ MachConsPutChar(int Ch) } BOOLEAN -MachConsKbHit() +MachConsKbHit(VOID) { return MachVtbl.ConsKbHit(); } int -MachConsGetCh() +MachConsGetCh(VOID) { return MachVtbl.ConsGetCh(); } diff --git a/reactos/boot/freeldr/freeldr/mm/meminit.c b/reactos/boot/freeldr/freeldr/mm/meminit.c index dd8c0d61127..3c6f3026ab1 100644 --- a/reactos/boot/freeldr/freeldr/mm/meminit.c +++ b/reactos/boot/freeldr/freeldr/mm/meminit.c @@ -236,7 +236,7 @@ ArcGetMemoryDescriptor(const FREELDR_MEMORY_DESCRIPTOR* Current) static VOID -MmCheckFreeldrImageFile() +MmCheckFreeldrImageFile(VOID) { PIMAGE_NT_HEADERS NtHeaders; PIMAGE_FILE_HEADER FileHeader; diff --git a/reactos/boot/freeldr/freeldr/windows/winldr.c b/reactos/boot/freeldr/freeldr/windows/winldr.c index 1410f4fce46..f1946536faf 100644 --- a/reactos/boot/freeldr/freeldr/windows/winldr.c +++ b/reactos/boot/freeldr/freeldr/windows/winldr.c @@ -408,7 +408,7 @@ WinLdrLoadModule(PCSTR ModuleName, } USHORT -WinLdrDetectVersion() +WinLdrDetectVersion(VOID) { LONG rc; FRLDRHKEY hKey; diff --git a/reactos/dll/win32/msgina/msgina.c b/reactos/dll/win32/msgina/msgina.c index 92aea28f66e..eb4e2f9d682 100644 --- a/reactos/dll/win32/msgina/msgina.c +++ b/reactos/dll/win32/msgina/msgina.c @@ -263,7 +263,7 @@ typedef DWORD (WINAPI *pThemeWait)(DWORD dwTimeout); typedef BOOL (WINAPI *pThemeWatch)(void); static void -InitThemeSupport() +InitThemeSupport(VOID) { HMODULE hDll = LoadLibraryW(L"shsvcs.dll"); pThemeWait themeWait; diff --git a/reactos/drivers/setup/blue/font.c b/reactos/drivers/setup/blue/font.c index 7a08cf68cb4..3adac96c13c 100644 --- a/reactos/drivers/setup/blue/font.c +++ b/reactos/drivers/setup/blue/font.c @@ -195,7 +195,7 @@ NTSTATUS ExtractFont(UINT32 CodePage, PUCHAR FontBitField) /* Font-load specific funcs */ VOID -OpenBitPlane() +OpenBitPlane(VOID) { /* disable interrupts */ _disable(); @@ -216,7 +216,7 @@ OpenBitPlane() } VOID -CloseBitPlane() +CloseBitPlane(VOID) { /* disable interrupts */ _disable();