Change some functions arguments from () -> (void).

oldstable
Stefan Huehner 2007-03-10 22:00:47 +01:00 committed by Alexandre Julliard
parent 6544831184
commit 51a7ca3440
33 changed files with 64 additions and 64 deletions

View File

@ -185,7 +185,7 @@ static void append_str(char **str, const char *data)
*str += strlen(*str); *str += strlen(*str);
} }
static void create_inf_file() static void create_inf_file(void)
{ {
char data[1024]; char data[1024];
char *ptr = data; char *ptr = data;
@ -215,7 +215,7 @@ static void create_inf_file()
CloseHandle(hf); CloseHandle(hf);
} }
static void translateinfstring_test() static void translateinfstring_test(void)
{ {
HRESULT hr; HRESULT hr;
char buffer[MAX_PATH]; char buffer[MAX_PATH];

View File

@ -30,7 +30,7 @@ static HRESULT (WINAPI *pLaunchINFSectionEx)(HWND, HINSTANCE, LPSTR, INT);
static char CURR_DIR[MAX_PATH]; static char CURR_DIR[MAX_PATH];
static BOOL init_function_pointers() static BOOL init_function_pointers(void)
{ {
HMODULE hAdvPack = LoadLibraryA("advpack.dll"); HMODULE hAdvPack = LoadLibraryA("advpack.dll");
if (!hAdvPack) if (!hAdvPack)
@ -80,7 +80,7 @@ static void create_inf_file(LPCSTR filename)
CloseHandle(hf); CloseHandle(hf);
} }
static void test_RunSetupCommand() static void test_RunSetupCommand(void)
{ {
HRESULT hr; HRESULT hr;
HANDLE hexe; HANDLE hexe;
@ -194,7 +194,7 @@ static void test_RunSetupCommand()
"Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %d\n", hr); "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %d\n", hr);
} }
static void test_LaunchINFSection() static void test_LaunchINFSection(void)
{ {
HRESULT hr; HRESULT hr;
char cmdline[MAX_PATH]; char cmdline[MAX_PATH];
@ -226,7 +226,7 @@ static void test_LaunchINFSection()
DeleteFileA("test.inf"); DeleteFileA("test.inf");
} }
static void test_LaunchINFSectionEx() static void test_LaunchINFSectionEx(void)
{ {
HRESULT hr; HRESULT hr;
char cmdline[MAX_PATH]; char cmdline[MAX_PATH];

View File

@ -222,7 +222,7 @@ IACListVtbl TestACL_ACListVtbl =
#define expect_end(obj) \ #define expect_end(obj) \
ok(obj->lpVtbl->Next(obj, 1, &wstr, &i) == S_FALSE, "Unexpected return from Next\n"); ok(obj->lpVtbl->Next(obj, 1, &wstr, &i) == S_FALSE, "Unexpected return from Next\n");
void test_ACLMulti() void test_ACLMulti(void)
{ {
const char *strings1[] = {"a", "c", "e"}; const char *strings1[] = {"a", "c", "e"};
const char *strings2[] = {"a", "b", "d"}; const char *strings2[] = {"a", "b", "d"};

View File

@ -139,7 +139,7 @@ static LRESULT WINAPI listview_subclass_proc(HWND hwnd, UINT message, WPARAM wPa
return ret; return ret;
} }
static HWND create_listview_control() static HWND create_listview_control(void)
{ {
struct subclass_info *info; struct subclass_info *info;
HWND hwnd; HWND hwnd;
@ -567,7 +567,7 @@ static LRESULT CALLBACK create_test_wndproc(HWND hwnd, UINT uMsg, WPARAM wParam,
return CallWindowProc(listviewWndProc, hwnd, uMsg, wParam, lParam); return CallWindowProc(listviewWndProc, hwnd, uMsg, wParam, lParam);
} }
static void test_create() static void test_create(void)
{ {
HWND hList; HWND hList;
HWND hHeader; HWND hHeader;

View File

@ -308,7 +308,7 @@ static void add_band_w(HWND hRebar, LPCSTR lpszText, int cxMinChild, int cx, int
SendMessage(hRebar, RB_INSERTBAND, -1, (LPARAM)&rbi); SendMessage(hRebar, RB_INSERTBAND, -1, (LPARAM)&rbi);
} }
static void layout_test() static void layout_test(void)
{ {
HWND hRebar = NULL; HWND hRebar = NULL;
REBARBANDINFO rbi; REBARBANDINFO rbi;
@ -625,7 +625,7 @@ static int resize_numtests = 0;
#endif #endif
static void resize_test() static void resize_test(void)
{ {
DWORD dwStyles[] = {CCS_TOP, CCS_TOP | CCS_NODIVIDER, CCS_BOTTOM, CCS_BOTTOM | CCS_NODIVIDER, CCS_VERT, CCS_RIGHT, DWORD dwStyles[] = {CCS_TOP, CCS_TOP | CCS_NODIVIDER, CCS_BOTTOM, CCS_BOTTOM | CCS_NODIVIDER, CCS_VERT, CCS_RIGHT,
CCS_NOPARENTALIGN, CCS_NOPARENTALIGN | CCS_NODIVIDER, CCS_NORESIZE, CCS_NOMOVEY, CCS_NOMOVEY | CCS_VERT, CCS_NOPARENTALIGN, CCS_NOPARENTALIGN | CCS_NODIVIDER, CCS_NORESIZE, CCS_NOMOVEY, CCS_NOMOVEY | CCS_VERT,
@ -713,7 +713,7 @@ static void expect_band_content(UINT uBand, UINT fStyle, COLORREF clrFore,
expect_eq(rb.cxHeader, cxHeader, int, "%d"); expect_eq(rb.cxHeader, cxHeader, int, "%d");
} }
static void bandinfo_test() static void bandinfo_test(void)
{ {
REBARBANDINFOA rb; REBARBANDINFOA rb;
CHAR szABC[] = "ABC"; CHAR szABC[] = "ABC";

View File

@ -198,7 +198,7 @@ static LRESULT WINAPI edit_subclass_proc(HWND hwnd, UINT message, WPARAM wParam,
return ret; return ret;
} }
static HWND create_edit_control() static HWND create_edit_control(void)
{ {
struct subclass_info *info; struct subclass_info *info;
RECT rect; RECT rect;
@ -247,7 +247,7 @@ static LRESULT WINAPI updown_subclass_proc(HWND hwnd, UINT message, WPARAM wPara
return ret; return ret;
} }
static HWND create_updown_control() static HWND create_updown_control(void)
{ {
struct subclass_info *info; struct subclass_info *info;
HWND updown; HWND updown;

View File

@ -31,7 +31,7 @@ IDirect3DDevice7 *Direct3DDevice = NULL;
static HRESULT (WINAPI *pDirectDrawCreateEx)(LPGUID,LPVOID*,REFIID,LPUNKNOWN); static HRESULT (WINAPI *pDirectDrawCreateEx)(LPGUID,LPVOID*,REFIID,LPUNKNOWN);
static BOOL createObjects() static BOOL createObjects(void)
{ {
HRESULT hr; HRESULT hr;
HMODULE hmod = GetModuleHandleA("ddraw.dll"); HMODULE hmod = GetModuleHandleA("ddraw.dll");
@ -104,7 +104,7 @@ static BOOL createObjects()
return FALSE; return FALSE;
} }
static void releaseObjects() static void releaseObjects(void)
{ {
IDirect3DDevice7_Release(Direct3DDevice); IDirect3DDevice7_Release(Direct3DDevice);
IDirect3D7_Release(Direct3D); IDirect3D7_Release(Direct3D);

View File

@ -221,7 +221,7 @@ static HRESULT DEVENUM_CreateAMCategoryKey(const CLSID * clsidCategory)
* *
* Creates the keys in the registry for the dynamic categories * Creates the keys in the registry for the dynamic categories
*/ */
static HRESULT DEVENUM_CreateSpecialCategories() static HRESULT DEVENUM_CreateSpecialCategories(void)
{ {
HRESULT res; HRESULT res;
WCHAR szDSoundNameFormat[MAX_PATH + 1]; WCHAR szDSoundNameFormat[MAX_PATH + 1];

View File

@ -365,7 +365,7 @@ static HRESULT register_clsids(int count, const register_info * pRegInfo, LPCWST
typedef HRESULT (WINAPI *DllRegisterServer_func)(void); typedef HRESULT (WINAPI *DllRegisterServer_func)(void);
/* calls DllRegisterServer() for the Quartz DLL */ /* calls DllRegisterServer() for the Quartz DLL */
static void DEVENUM_RegisterQuartz() static void DEVENUM_RegisterQuartz(void)
{ {
HANDLE hDLL = LoadLibraryA("quartz.dll"); HANDLE hDLL = LoadLibraryA("quartz.dll");
DllRegisterServer_func pDllRegisterServer = NULL; DllRegisterServer_func pDllRegisterServer = NULL;

View File

@ -679,7 +679,7 @@ static const IMonikerVtbl IMoniker_Vtbl =
DEVENUM_IMediaCatMoniker_IsSystemMoniker DEVENUM_IMediaCatMoniker_IsSystemMoniker
}; };
MediaCatMoniker * DEVENUM_IMediaCatMoniker_Construct() MediaCatMoniker * DEVENUM_IMediaCatMoniker_Construct(void)
{ {
MediaCatMoniker * pMoniker = NULL; MediaCatMoniker * pMoniker = NULL;
pMoniker = CoTaskMemAlloc(sizeof(MediaCatMoniker)); pMoniker = CoTaskMemAlloc(sizeof(MediaCatMoniker));

View File

@ -112,7 +112,7 @@ const char * getDSBCAPS(DWORD xmask) {
return buffer; return buffer;
} }
HWND get_hwnd() HWND get_hwnd(void)
{ {
HWND hwnd=GetForegroundWindow(); HWND hwnd=GetForegroundWindow();
if (!hwnd) if (!hwnd)

View File

@ -51,7 +51,7 @@ typedef struct opengl_context
* Some functions don't receive a hDC. This function creates a global hdc and * Some functions don't receive a hDC. This function creates a global hdc and
* if there's already a global hdc, it returns it. * if there's already a global hdc, it returns it.
*/ */
static DC* OPENGL_GetDefaultDC() static DC* OPENGL_GetDefaultDC(void)
{ {
if(!default_hdc) if(!default_hdc)
default_hdc = CreateDCA("DISPLAY", NULL, NULL, NULL); default_hdc = CreateDCA("DISPLAY", NULL, NULL, NULL);

View File

@ -518,7 +518,7 @@ static void test_text_extents(void)
ReleaseDC(NULL, hdc); ReleaseDC(NULL, hdc);
} }
static void test_GetGlyphIndices() static void test_GetGlyphIndices(void)
{ {
HDC hdc; HDC hdc;
HFONT hfont; HFONT hfont;

View File

@ -319,7 +319,7 @@ static void test_ffcn(void)
/* this test concentrates on the wait behavior when multiple threads are /* this test concentrates on the wait behavior when multiple threads are
* waiting on a change notification handle. */ * waiting on a change notification handle. */
static void test_ffcnMultipleThreads() static void test_ffcnMultipleThreads(void)
{ {
LONG r; LONG r;
DWORD filter, threadId, status, exitcode; DWORD filter, threadId, status, exitcode;

View File

@ -75,7 +75,7 @@ BOOL WINAPI _CorDllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return TRUE; return TRUE;
} }
static LPWSTR get_mono_exe() static LPWSTR get_mono_exe(void)
{ {
static const WCHAR mono_exe[] = {'b','i','n','\\','m','o','n','o','.','e','x','e',' ',0}; static const WCHAR mono_exe[] = {'b','i','n','\\','m','o','n','o','.','e','x','e',' ',0};
static const WCHAR mono_key[] = {'S','o','f','t','w','a','r','e','\\','N','o','v','e','l','l','\\','M','o','n','o',0}; static const WCHAR mono_key[] = {'S','o','f','t','w','a','r','e','\\','N','o','v','e','l','l','\\','M','o','n','o',0};

View File

@ -624,7 +624,7 @@ void nsnode_to_nsstring(nsIDOMNode *nsdoc, nsAString *str)
nsIContentSerializer_Release(serializer); nsIContentSerializer_Release(serializer);
} }
void close_gecko() void close_gecko(void)
{ {
TRACE("()\n"); TRACE("()\n");

View File

@ -483,7 +483,7 @@ static void test_Invoke(void)
IFontDisp_Release(fontdisp); IFontDisp_Release(fontdisp);
} }
static void test_IsEqual() static void test_IsEqual(void)
{ {
FONTDESC fd; FONTDESC fd;
LPVOID pvObj = NULL; LPVOID pvObj = NULL;

View File

@ -552,7 +552,7 @@ static void communicate(SspiData *from, SspiData *to)
} }
/**********************************************************************/ /**********************************************************************/
static void testInitializeSecurityContextFlags() static void testInitializeSecurityContextFlags(void)
{ {
SECURITY_STATUS sec_status; SECURITY_STATUS sec_status;
PSecPkgInfo pkg_info = NULL; PSecPkgInfo pkg_info = NULL;
@ -897,7 +897,7 @@ tAuthend:
getSecError(sec_status)); getSecError(sec_status));
} }
static void testSignSeal() static void testSignSeal(void)
{ {
SECURITY_STATUS client_stat = SEC_I_CONTINUE_NEEDED; SECURITY_STATUS client_stat = SEC_I_CONTINUE_NEEDED;
SECURITY_STATUS server_stat = SEC_I_CONTINUE_NEEDED; SECURITY_STATUS server_stat = SEC_I_CONTINUE_NEEDED;

View File

@ -1357,7 +1357,7 @@ LPITEMIDLIST _ILAlloc(PIDLTYPE type, unsigned int size)
return pidlOut; return pidlOut;
} }
LPITEMIDLIST _ILCreateDesktop() LPITEMIDLIST _ILCreateDesktop(void)
{ {
LPITEMIDLIST ret; LPITEMIDLIST ret;
@ -1368,25 +1368,25 @@ LPITEMIDLIST _ILCreateDesktop()
return ret; return ret;
} }
LPITEMIDLIST _ILCreateMyComputer() LPITEMIDLIST _ILCreateMyComputer(void)
{ {
TRACE("()\n"); TRACE("()\n");
return _ILCreateGuid(PT_GUID, &CLSID_MyComputer); return _ILCreateGuid(PT_GUID, &CLSID_MyComputer);
} }
LPITEMIDLIST _ILCreateMyDocuments() LPITEMIDLIST _ILCreateMyDocuments(void)
{ {
TRACE("()\n"); TRACE("()\n");
return _ILCreateGuid(PT_GUID, &CLSID_MyDocuments); return _ILCreateGuid(PT_GUID, &CLSID_MyDocuments);
} }
LPITEMIDLIST _ILCreateIExplore() LPITEMIDLIST _ILCreateIExplore(void)
{ {
TRACE("()\n"); TRACE("()\n");
return _ILCreateGuid(PT_GUID, &CLSID_Internet); return _ILCreateGuid(PT_GUID, &CLSID_Internet);
} }
LPITEMIDLIST _ILCreateControlPanel() LPITEMIDLIST _ILCreateControlPanel(void)
{ {
LPITEMIDLIST parent = _ILCreateGuid(PT_GUID, &CLSID_MyComputer), ret = NULL; LPITEMIDLIST parent = _ILCreateGuid(PT_GUID, &CLSID_MyComputer), ret = NULL;
@ -1405,7 +1405,7 @@ LPITEMIDLIST _ILCreateControlPanel()
return ret; return ret;
} }
LPITEMIDLIST _ILCreatePrinters() LPITEMIDLIST _ILCreatePrinters(void)
{ {
LPITEMIDLIST parent = _ILCreateGuid(PT_GUID, &CLSID_MyComputer), ret = NULL; LPITEMIDLIST parent = _ILCreateGuid(PT_GUID, &CLSID_MyComputer), ret = NULL;
@ -1424,13 +1424,13 @@ LPITEMIDLIST _ILCreatePrinters()
return ret; return ret;
} }
LPITEMIDLIST _ILCreateNetwork() LPITEMIDLIST _ILCreateNetwork(void)
{ {
TRACE("()\n"); TRACE("()\n");
return _ILCreateGuid(PT_GUID, &CLSID_NetworkPlaces); return _ILCreateGuid(PT_GUID, &CLSID_NetworkPlaces);
} }
LPITEMIDLIST _ILCreateBitBucket() LPITEMIDLIST _ILCreateBitBucket(void)
{ {
TRACE("()\n"); TRACE("()\n");
return _ILCreateGuid(PT_GUID, &CLSID_RecycleBin); return _ILCreateGuid(PT_GUID, &CLSID_RecycleBin);

View File

@ -691,7 +691,7 @@ static void test_StrCpyNXW(void)
ok(ret##type == (exp), "Type " #type ", expected %p but got %p (string base %p)\n", \ ok(ret##type == (exp), "Type " #type ", expected %p but got %p (string base %p)\n", \
(exp), ret##type, str); (exp), ret##type, str);
static void test_StrRStrI() static void test_StrRStrI(void)
{ {
static const CHAR szTest[] = "yAxxxxAy"; static const CHAR szTest[] = "yAxxxxAy";
static const CHAR szTest2[] = "ABABABAB"; static const CHAR szTest2[] = "ABABABAB";
@ -760,7 +760,7 @@ static void test_SHUnicodeToUnicode(void)
dwRet, dest[0], dest[1], dest[2], dest[3], dest[4], dest[5], dest[6], dest[7]); dwRet, dest[0], dest[1], dest[2], dest[3], dest[4], dest[5], dest[6], dest[7]);
} }
static void test_StrXXX_overflows() static void test_StrXXX_overflows(void)
{ {
CHAR str1[2*MAX_PATH+1], buf[2*MAX_PATH]; CHAR str1[2*MAX_PATH+1], buf[2*MAX_PATH];
WCHAR wstr1[2*MAX_PATH+1], wbuf[2*MAX_PATH]; WCHAR wstr1[2*MAX_PATH+1], wbuf[2*MAX_PATH];

View File

@ -42,7 +42,7 @@ static BOOL glyphNamesIndexed = TRUE;
* the AGL glyph names into it; returns 0 on success, 1 on failure * the AGL glyph names into it; returns 0 on success, 1 on failure
* *
*/ */
INT PSDRV_GlyphListInit() INT PSDRV_GlyphListInit(void)
{ {
INT i; INT i;
@ -180,7 +180,7 @@ const GLYPHNAME *PSDRV_GlyphName(LPCSTR szName)
* Initializes index member of all GLYPHNAME structures * Initializes index member of all GLYPHNAME structures
* *
*/ */
VOID PSDRV_IndexGlyphList() VOID PSDRV_IndexGlyphList(void)
{ {
INT i; INT i;

View File

@ -1025,7 +1025,7 @@ static BOOL X11DRV_CLIPBOARD_RenderSynthesizedText(UINT wFormatID)
* *
* Renders synthesized DIB * Renders synthesized DIB
*/ */
static BOOL X11DRV_CLIPBOARD_RenderSynthesizedDIB() static BOOL X11DRV_CLIPBOARD_RenderSynthesizedDIB(void)
{ {
BOOL bret = FALSE; BOOL bret = FALSE;
LPWINE_CLIPDATA lpSource = NULL; LPWINE_CLIPDATA lpSource = NULL;
@ -1067,7 +1067,7 @@ static BOOL X11DRV_CLIPBOARD_RenderSynthesizedDIB()
* *
* Renders synthesized bitmap * Renders synthesized bitmap
*/ */
static BOOL X11DRV_CLIPBOARD_RenderSynthesizedBitmap() static BOOL X11DRV_CLIPBOARD_RenderSynthesizedBitmap(void)
{ {
BOOL bret = FALSE; BOOL bret = FALSE;
LPWINE_CLIPDATA lpSource = NULL; LPWINE_CLIPDATA lpSource = NULL;

View File

@ -116,7 +116,7 @@ static void set_last_error(void)
static const WCHAR wDevicemapScsi[] = {'H','A','R','D','W','A','R','E','\\','D','E','V','I','C','E','M','A','P','\\','S','c','s','i',0}; static const WCHAR wDevicemapScsi[] = {'H','A','R','D','W','A','R','E','\\','D','E','V','I','C','E','M','A','P','\\','S','c','s','i',0};
/* Exported functions */ /* Exported functions */
int ASPI_GetNumControllers() int ASPI_GetNumControllers(void)
{ {
HKEY hkeyScsi, hkeyPort; HKEY hkeyScsi, hkeyPort;
DWORD i = 0, numPorts, num_ha = 0; DWORD i = 0, numPorts, num_ha = 0;

View File

@ -298,6 +298,6 @@ LANGID WINAPI MsiGetLanguage(MSIHANDLE);
UINT WINAPI MsiSetInstallLevel(MSIHANDLE, int); UINT WINAPI MsiSetInstallLevel(MSIHANDLE, int);
MSIHANDLE WINAPI MsiGetLastErrorRecord(); MSIHANDLE WINAPI MsiGetLastErrorRecord(void);
#endif /* __WINE_MSIQUERY_H */ #endif /* __WINE_MSIQUERY_H */

View File

@ -57,7 +57,7 @@ static LRESULT CALLBACK GROUP_GroupWndProc(HWND hWnd, UINT msg,
* GROUP_RegisterGroupWinClass * GROUP_RegisterGroupWinClass
*/ */
ATOM GROUP_RegisterGroupWinClass() ATOM GROUP_RegisterGroupWinClass(void)
{ {
WNDCLASS class; WNDCLASS class;
@ -80,7 +80,7 @@ ATOM GROUP_RegisterGroupWinClass()
* GROUP_NewGroup * GROUP_NewGroup
*/ */
VOID GROUP_NewGroup() VOID GROUP_NewGroup(void)
{ {
CHAR szName[MAX_PATHNAME_LEN] = ""; CHAR szName[MAX_PATHNAME_LEN] = "";
CHAR szFile[MAX_PATHNAME_LEN] = ""; CHAR szFile[MAX_PATHNAME_LEN] = "";
@ -271,7 +271,7 @@ VOID GROUP_DeleteGroup(HLOCAL hGroup)
* GROUP_FirstGroup * GROUP_FirstGroup
*/ */
HLOCAL GROUP_FirstGroup() HLOCAL GROUP_FirstGroup(void)
{ {
return(Globals.hGroups); return(Globals.hGroups);
} }
@ -294,7 +294,7 @@ HLOCAL GROUP_NextGroup(HLOCAL hGroup)
* GROUP_ActiveGroup * GROUP_ActiveGroup
*/ */
HLOCAL GROUP_ActiveGroup() HLOCAL GROUP_ActiveGroup(void)
{ {
return(Globals.hActiveGroup); return(Globals.hActiveGroup);
} }

View File

@ -110,7 +110,7 @@ int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show
* MAIN_CreateGroups * MAIN_CreateGroups
*/ */
static VOID MAIN_CreateGroups() static VOID MAIN_CreateGroups(void)
{ {
CHAR buffer[BUFFER_SIZE]; CHAR buffer[BUFFER_SIZE];
CHAR szPath[MAX_PATHNAME_LEN]; CHAR szPath[MAX_PATHNAME_LEN];
@ -144,7 +144,7 @@ static VOID MAIN_CreateGroups()
* MAIN_AutoStart * MAIN_AutoStart
*/ */
VOID MAIN_AutoStart() VOID MAIN_AutoStart(void)
{ {
CHAR buffer[BUFFER_SIZE]; CHAR buffer[BUFFER_SIZE];
HLOCAL hGroup, hProgram; HLOCAL hGroup, hProgram;
@ -344,7 +344,7 @@ static VOID MAIN_MenuCommand(HWND hWnd, WPARAM wParam, LPARAM lParam)
* MAIN_RegisterMainWinClass * MAIN_RegisterMainWinClass
*/ */
static ATOM MAIN_RegisterMainWinClass() static ATOM MAIN_RegisterMainWinClass(void)
{ {
WNDCLASS class; WNDCLASS class;
@ -367,7 +367,7 @@ static ATOM MAIN_RegisterMainWinClass()
* MAIN_CreateMainWindow * MAIN_CreateMainWindow
*/ */
static VOID MAIN_CreateMainWindow() static VOID MAIN_CreateMainWindow(void)
{ {
INT left , top, right, bottom, width, height, show; INT left , top, right, bottom, width, height, show;
CHAR buffer[100]; CHAR buffer[100];
@ -404,7 +404,7 @@ static VOID MAIN_CreateMainWindow()
* MAIN_CreateMDIWindow * MAIN_CreateMDIWindow
*/ */
static VOID MAIN_CreateMDIWindow() static VOID MAIN_CreateMDIWindow(void)
{ {
CLIENTCREATESTRUCT ccs; CLIENTCREATESTRUCT ccs;
RECT rect; RECT rect;

View File

@ -71,7 +71,7 @@ static LRESULT CALLBACK PROGRAM_ProgramWndProc(HWND hWnd, UINT msg, WPARAM wPara
* PROGRAM_RegisterProgramWinClass * PROGRAM_RegisterProgramWinClass
*/ */
ATOM PROGRAM_RegisterProgramWinClass() ATOM PROGRAM_RegisterProgramWinClass(void)
{ {
WNDCLASS class; WNDCLASS class;

View File

@ -673,7 +673,7 @@ HexEdit_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return 0; return 0;
} }
void HexEdit_Register() void HexEdit_Register(void)
{ {
WNDCLASS wndClass; WNDCLASS wndClass;
@ -690,7 +690,7 @@ void HexEdit_Register()
} }
void HexEdit_Unregister() void HexEdit_Unregister(void)
{ {
UnregisterClass(HEXEDIT_CLASS, NULL); UnregisterClass(HEXEDIT_CLASS, NULL);
} }

View File

@ -260,7 +260,7 @@ BOOL moveDrive(struct drive *pSrc, struct drive *pDst)
#endif #endif
/* Load currently defined drives into the drives array */ /* Load currently defined drives into the drives array */
void load_drives() void load_drives(void)
{ {
char *devices, *dev; char *devices, *dev;
int len; int len;

View File

@ -289,7 +289,7 @@ static void ensure_drive_c_is_mapped(void)
} }
} }
int autodetect_drives() int autodetect_drives(void)
{ {
#ifdef HAVE_MNTENT_H #ifdef HAVE_MNTENT_H
struct mntent *ent; struct mntent *ent;

View File

@ -629,7 +629,7 @@ static void init_shell_folder_listview_headers(HWND dialog) {
} }
/* Reads the currently set shell folder symbol link targets into asfiInfo. */ /* Reads the currently set shell folder symbol link targets into asfiInfo. */
static void read_shell_folder_link_targets() { static void read_shell_folder_link_targets(void) {
WCHAR wszPath[MAX_PATH]; WCHAR wszPath[MAX_PATH];
HRESULT hr; HRESULT hr;
int i; int i;
@ -763,7 +763,7 @@ static void on_shell_folder_edit_changed(HWND hDlg) {
SendMessage(GetParent(hDlg), PSM_CHANGED, 0, 0); SendMessage(GetParent(hDlg), PSM_CHANGED, 0, 0);
} }
static void apply_shell_folder_changes() { static void apply_shell_folder_changes(void) {
WCHAR wszPath[MAX_PATH]; WCHAR wszPath[MAX_PATH];
char szBackupPath[FILENAME_MAX], szUnixPath[FILENAME_MAX], *pszUnixPath = NULL; char szBackupPath[FILENAME_MAX], szUnixPath[FILENAME_MAX], *pszUnixPath = NULL;
int i, cUnixPathLen; int i, cUnixPathLen;

View File

@ -51,7 +51,7 @@ static void printf_res(UINT uResId, ...)
va_end(args); va_end(args);
} }
static void WINECON_Usage() static void WINECON_Usage(void)
{ {
printf_res(IDS_USAGE_HEADER); printf_res(IDS_USAGE_HEADER);
printf_res(IDS_USAGE_BACKEND); printf_res(IDS_USAGE_BACKEND);

View File

@ -49,7 +49,7 @@ static HWND hEditorWnd;
static char szFilter[MAX_STRING_LEN]; static char szFilter[MAX_STRING_LEN];
/* Load string resources */ /* Load string resources */
static void DoLoadStrings() static void DoLoadStrings(void)
{ {
LPSTR p = szFilter; LPSTR p = szFilter;
char files_rtf[] = "*.rtf"; char files_rtf[] = "*.rtf";
@ -176,7 +176,7 @@ static void DoOpenFile(LPCWSTR szFileName)
SetWindowText(hMainWnd, szCaption); SetWindowText(hMainWnd, szCaption);
} }
static void DialogOpenFile() static void DialogOpenFile(void)
{ {
OPENFILENAME ofn; OPENFILENAME ofn;
@ -253,7 +253,7 @@ static void HandleCommandLine(LPWSTR cmdline)
MessageBox(hMainWnd, "Printing not implemented", "WordPad", MB_OK); MessageBox(hMainWnd, "Printing not implemented", "WordPad", MB_OK);
} }
static void DoDefaultFont() static void DoDefaultFont(void)
{ {
static const WCHAR szFaceName[] = {'T','i','m','e','s',' ','N','e','w',' ','R','o','m','a','n',0}; static const WCHAR szFaceName[] = {'T','i','m','e','s',' ','N','e','w',' ','R','o','m','a','n',0};
CHARFORMAT2W fmt; CHARFORMAT2W fmt;