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);
}
static void create_inf_file()
static void create_inf_file(void)
{
char data[1024];
char *ptr = data;
@ -215,7 +215,7 @@ static void create_inf_file()
CloseHandle(hf);
}
static void translateinfstring_test()
static void translateinfstring_test(void)
{
HRESULT hr;
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 BOOL init_function_pointers()
static BOOL init_function_pointers(void)
{
HMODULE hAdvPack = LoadLibraryA("advpack.dll");
if (!hAdvPack)
@ -80,7 +80,7 @@ static void create_inf_file(LPCSTR filename)
CloseHandle(hf);
}
static void test_RunSetupCommand()
static void test_RunSetupCommand(void)
{
HRESULT hr;
HANDLE hexe;
@ -194,7 +194,7 @@ static void test_RunSetupCommand()
"Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %d\n", hr);
}
static void test_LaunchINFSection()
static void test_LaunchINFSection(void)
{
HRESULT hr;
char cmdline[MAX_PATH];
@ -226,7 +226,7 @@ static void test_LaunchINFSection()
DeleteFileA("test.inf");
}
static void test_LaunchINFSectionEx()
static void test_LaunchINFSectionEx(void)
{
HRESULT hr;
char cmdline[MAX_PATH];

View File

@ -222,7 +222,7 @@ IACListVtbl TestACL_ACListVtbl =
#define expect_end(obj) \
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 *strings2[] = {"a", "b", "d"};

View File

@ -139,7 +139,7 @@ static LRESULT WINAPI listview_subclass_proc(HWND hwnd, UINT message, WPARAM wPa
return ret;
}
static HWND create_listview_control()
static HWND create_listview_control(void)
{
struct subclass_info *info;
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);
}
static void test_create()
static void test_create(void)
{
HWND hList;
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);
}
static void layout_test()
static void layout_test(void)
{
HWND hRebar = NULL;
REBARBANDINFO rbi;
@ -625,7 +625,7 @@ static int resize_numtests = 0;
#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,
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");
}
static void bandinfo_test()
static void bandinfo_test(void)
{
REBARBANDINFOA rb;
CHAR szABC[] = "ABC";

View File

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

View File

@ -31,7 +31,7 @@ IDirect3DDevice7 *Direct3DDevice = NULL;
static HRESULT (WINAPI *pDirectDrawCreateEx)(LPGUID,LPVOID*,REFIID,LPUNKNOWN);
static BOOL createObjects()
static BOOL createObjects(void)
{
HRESULT hr;
HMODULE hmod = GetModuleHandleA("ddraw.dll");
@ -104,7 +104,7 @@ static BOOL createObjects()
return FALSE;
}
static void releaseObjects()
static void releaseObjects(void)
{
IDirect3DDevice7_Release(Direct3DDevice);
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
*/
static HRESULT DEVENUM_CreateSpecialCategories()
static HRESULT DEVENUM_CreateSpecialCategories(void)
{
HRESULT res;
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);
/* calls DllRegisterServer() for the Quartz DLL */
static void DEVENUM_RegisterQuartz()
static void DEVENUM_RegisterQuartz(void)
{
HANDLE hDLL = LoadLibraryA("quartz.dll");
DllRegisterServer_func pDllRegisterServer = NULL;

View File

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

View File

@ -112,7 +112,7 @@ const char * getDSBCAPS(DWORD xmask) {
return buffer;
}
HWND get_hwnd()
HWND get_hwnd(void)
{
HWND hwnd=GetForegroundWindow();
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
* if there's already a global hdc, it returns it.
*/
static DC* OPENGL_GetDefaultDC()
static DC* OPENGL_GetDefaultDC(void)
{
if(!default_hdc)
default_hdc = CreateDCA("DISPLAY", NULL, NULL, NULL);

View File

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

View File

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

View File

@ -75,7 +75,7 @@ BOOL WINAPI _CorDllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
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_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);
}
void close_gecko()
void close_gecko(void)
{
TRACE("()\n");

View File

@ -483,7 +483,7 @@ static void test_Invoke(void)
IFontDisp_Release(fontdisp);
}
static void test_IsEqual()
static void test_IsEqual(void)
{
FONTDESC fd;
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;
PSecPkgInfo pkg_info = NULL;
@ -897,7 +897,7 @@ tAuthend:
getSecError(sec_status));
}
static void testSignSeal()
static void testSignSeal(void)
{
SECURITY_STATUS client_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;
}
LPITEMIDLIST _ILCreateDesktop()
LPITEMIDLIST _ILCreateDesktop(void)
{
LPITEMIDLIST ret;
@ -1368,25 +1368,25 @@ LPITEMIDLIST _ILCreateDesktop()
return ret;
}
LPITEMIDLIST _ILCreateMyComputer()
LPITEMIDLIST _ILCreateMyComputer(void)
{
TRACE("()\n");
return _ILCreateGuid(PT_GUID, &CLSID_MyComputer);
}
LPITEMIDLIST _ILCreateMyDocuments()
LPITEMIDLIST _ILCreateMyDocuments(void)
{
TRACE("()\n");
return _ILCreateGuid(PT_GUID, &CLSID_MyDocuments);
}
LPITEMIDLIST _ILCreateIExplore()
LPITEMIDLIST _ILCreateIExplore(void)
{
TRACE("()\n");
return _ILCreateGuid(PT_GUID, &CLSID_Internet);
}
LPITEMIDLIST _ILCreateControlPanel()
LPITEMIDLIST _ILCreateControlPanel(void)
{
LPITEMIDLIST parent = _ILCreateGuid(PT_GUID, &CLSID_MyComputer), ret = NULL;
@ -1405,7 +1405,7 @@ LPITEMIDLIST _ILCreateControlPanel()
return ret;
}
LPITEMIDLIST _ILCreatePrinters()
LPITEMIDLIST _ILCreatePrinters(void)
{
LPITEMIDLIST parent = _ILCreateGuid(PT_GUID, &CLSID_MyComputer), ret = NULL;
@ -1424,13 +1424,13 @@ LPITEMIDLIST _ILCreatePrinters()
return ret;
}
LPITEMIDLIST _ILCreateNetwork()
LPITEMIDLIST _ILCreateNetwork(void)
{
TRACE("()\n");
return _ILCreateGuid(PT_GUID, &CLSID_NetworkPlaces);
}
LPITEMIDLIST _ILCreateBitBucket()
LPITEMIDLIST _ILCreateBitBucket(void)
{
TRACE("()\n");
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", \
(exp), ret##type, str);
static void test_StrRStrI()
static void test_StrRStrI(void)
{
static const CHAR szTest[] = "yAxxxxAy";
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]);
}
static void test_StrXXX_overflows()
static void test_StrXXX_overflows(void)
{
CHAR str1[2*MAX_PATH+1], buf[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
*
*/
INT PSDRV_GlyphListInit()
INT PSDRV_GlyphListInit(void)
{
INT i;
@ -180,7 +180,7 @@ const GLYPHNAME *PSDRV_GlyphName(LPCSTR szName)
* Initializes index member of all GLYPHNAME structures
*
*/
VOID PSDRV_IndexGlyphList()
VOID PSDRV_IndexGlyphList(void)
{
INT i;

View File

@ -1025,7 +1025,7 @@ static BOOL X11DRV_CLIPBOARD_RenderSynthesizedText(UINT wFormatID)
*
* Renders synthesized DIB
*/
static BOOL X11DRV_CLIPBOARD_RenderSynthesizedDIB()
static BOOL X11DRV_CLIPBOARD_RenderSynthesizedDIB(void)
{
BOOL bret = FALSE;
LPWINE_CLIPDATA lpSource = NULL;
@ -1067,7 +1067,7 @@ static BOOL X11DRV_CLIPBOARD_RenderSynthesizedDIB()
*
* Renders synthesized bitmap
*/
static BOOL X11DRV_CLIPBOARD_RenderSynthesizedBitmap()
static BOOL X11DRV_CLIPBOARD_RenderSynthesizedBitmap(void)
{
BOOL bret = FALSE;
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};
/* Exported functions */
int ASPI_GetNumControllers()
int ASPI_GetNumControllers(void)
{
HKEY hkeyScsi, hkeyPort;
DWORD i = 0, numPorts, num_ha = 0;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -260,7 +260,7 @@ BOOL moveDrive(struct drive *pSrc, struct drive *pDst)
#endif
/* Load currently defined drives into the drives array */
void load_drives()
void load_drives(void)
{
char *devices, *dev;
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
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. */
static void read_shell_folder_link_targets() {
static void read_shell_folder_link_targets(void) {
WCHAR wszPath[MAX_PATH];
HRESULT hr;
int i;
@ -763,7 +763,7 @@ static void on_shell_folder_edit_changed(HWND hDlg) {
SendMessage(GetParent(hDlg), PSM_CHANGED, 0, 0);
}
static void apply_shell_folder_changes() {
static void apply_shell_folder_changes(void) {
WCHAR wszPath[MAX_PATH];
char szBackupPath[FILENAME_MAX], szUnixPath[FILENAME_MAX], *pszUnixPath = NULL;
int i, cUnixPathLen;

View File

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

View File

@ -49,7 +49,7 @@ static HWND hEditorWnd;
static char szFilter[MAX_STRING_LEN];
/* Load string resources */
static void DoLoadStrings()
static void DoLoadStrings(void)
{
LPSTR p = szFilter;
char files_rtf[] = "*.rtf";
@ -176,7 +176,7 @@ static void DoOpenFile(LPCWSTR szFileName)
SetWindowText(hMainWnd, szCaption);
}
static void DialogOpenFile()
static void DialogOpenFile(void)
{
OPENFILENAME ofn;
@ -253,7 +253,7 @@ static void HandleCommandLine(LPWSTR cmdline)
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};
CHARFORMAT2W fmt;