winecfg,wineboot: fix some -Wstrict-prototypes warnings
Stefan Huehner
stefan at huehner.org
Thu Jun 16 07:40:34 CDT 2005
Hi,
next patch in series to fix some -Wstrict-prototypes warnings.
ChangeLog
- fix some -Wstrict-prototypes warnings
Regards,
Stefan
-------------- next part --------------
Index: drive.c
===================================================================
RCS file: /home/wine/wine/programs/winecfg/drive.c,v
retrieving revision 1.28
diff -u -p -r1.28 drive.c
--- drive.c 2 Jun 2005 15:11:32 -0000 1.28
+++ drive.c 16 Jun 2005 11:13:20 -0000
@@ -271,7 +271,7 @@ void load_drives()
/* some of this code appears to be broken by bugs in Wine: the label
* setting code has no effect, for instance */
-void apply_drive_changes()
+void apply_drive_changes(void)
{
int i;
CHAR devicename[4];
Index: drivedetect.c
===================================================================
RCS file: /home/wine/wine/programs/winecfg/drivedetect.c,v
retrieving revision 1.7
diff -u -p -r1.7 drivedetect.c
--- drivedetect.c 2 Jun 2005 15:11:32 -0000 1.7
+++ drivedetect.c 16 Jun 2005 11:13:20 -0000
@@ -111,7 +111,7 @@ static BOOL is_drive_defined(char *path)
}
/* returns Z + 1 if there are no more available letters */
-static char allocate_letter()
+static char allocate_letter(void)
{
char letter;
@@ -184,7 +184,7 @@ static void report_error(int code)
}
}
-static void ensure_root_is_mapped()
+static void ensure_root_is_mapped(void)
{
int i;
BOOL mapped = FALSE;
@@ -211,7 +211,7 @@ static void ensure_root_is_mapped()
}
}
-static void ensure_home_is_mapped()
+static void ensure_home_is_mapped(void)
{
int i;
BOOL mapped = FALSE;
@@ -239,7 +239,7 @@ static void ensure_home_is_mapped()
}
}
-static void ensure_drive_c_is_mapped()
+static void ensure_drive_c_is_mapped(void)
{
struct stat buf;
const char *configdir = wine_get_config_dir();
Index: winecfg.h
===================================================================
RCS file: /home/wine/wine/programs/winecfg/winecfg.h,v
retrieving revision 1.23
diff -u -p -r1.23 winecfg.h
--- winecfg.h 13 Jun 2005 18:49:23 -0000 1.23
+++ winecfg.h 16 Jun 2005 11:13:20 -0000
@@ -76,8 +76,8 @@ INT_PTR CALLBACK LibrariesDlgProc (HWND
INT_PTR CALLBACK AudioDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
/* Drive management */
-void load_drives();
-int autodetect_drives();
+void load_drives(void);
+int autodetect_drives(void);
struct drive
{
@@ -95,7 +95,7 @@ struct drive
long drive_available_mask(char letter);
BOOL add_drive(const char letter, const char *targetpath, const char *label, const char *serial, unsigned int type);
void delete_drive(struct drive *pDrive);
-void apply_drive_changes();
+void apply_drive_changes(void);
extern struct drive drives[26]; /* one for each drive letter */
BOOL gui_mode;
-------------- next part --------------
Index: wineboot.c
===================================================================
RCS file: /home/wine/wine/programs/wineboot/wineboot.c,v
retrieving revision 1.12
diff -u -p -r1.12 wineboot.c
--- wineboot.c 2 Jun 2005 10:28:53 -0000 1.12
+++ wineboot.c 16 Jun 2005 11:13:14 -0000
@@ -98,7 +98,7 @@ static BOOL GetLine( HANDLE hFile, char
/* Performs the rename operations dictated in %SystemRoot%\Wininit.ini.
* Returns FALSE if there was an error, or otherwise if all is ok.
*/
-static BOOL wininit()
+static BOOL wininit(void)
{
const char * const RENAME_FILE="wininit.ini";
const char * const RENAME_FILE_TO="wininit.bak";
@@ -188,7 +188,7 @@ static BOOL wininit()
return TRUE;
}
-static BOOL pendingRename()
+static BOOL pendingRename(void)
{
static const WCHAR ValueName[] = {'P','e','n','d','i','n','g',
'F','i','l','e','R','e','n','a','m','e',
More information about the wine-patches
mailing list