[PATCH] [Janitorial]: prototype func() should be func(void)

Eric Pouech eric.pouech at orange.fr
Wed Apr 30 01:38:33 CDT 2008




A+
---

 dlls/capi2032/cap20wxx.c   |    2 +-
 dlls/dmstyle/regsvr.c      |    4 ++--
 dlls/gphoto2.ds/ds_image.c |    2 +-
 dlls/msxml3/domimpl.c      |    2 +-
 dlls/winex11.drv/ime.c     |    2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)


diff --git a/dlls/capi2032/cap20wxx.c b/dlls/capi2032/cap20wxx.c
index 1e0bd4c..a6f3e3f 100644
--- a/dlls/capi2032/cap20wxx.c
+++ b/dlls/capi2032/cap20wxx.c
@@ -50,7 +50,7 @@ static unsigned (*pcapi20_release)(unsigned) = NULL;
 static unsigned (*pcapi20_put_message)(unsigned, unsigned char *) = NULL;
 static unsigned (*pcapi20_get_message)(unsigned, unsigned char **) = NULL;
 static unsigned (*pcapi20_waitformessage)(unsigned, struct timeval *) = NULL;
-static unsigned (*pcapi20_isinstalled)() = NULL;
+static unsigned (*pcapi20_isinstalled)(void) = NULL;
 static unsigned (*pcapi20_get_profile)(unsigned, unsigned char *) = NULL;
 static unsigned char *(*pcapi20_get_manufacturer)(unsigned, unsigned char *) = NULL;
 static unsigned char *(*pcapi20_get_serial_number)(unsigned, unsigned char *) = NULL;
diff --git a/dlls/dmstyle/regsvr.c b/dlls/dmstyle/regsvr.c
index 2fe4fdd..95c8059 100644
--- a/dlls/dmstyle/regsvr.c
+++ b/dlls/dmstyle/regsvr.c
@@ -503,7 +503,7 @@ static struct regsvr_interface const interface_list[] = {
 /***********************************************************************
  *		DllRegisterServer (DMSTYLE.3)
  */
-HRESULT WINAPI DllRegisterServer() {
+HRESULT WINAPI DllRegisterServer(void) {
     HRESULT hr;
 
     TRACE("\n");
@@ -517,7 +517,7 @@ HRESULT WINAPI DllRegisterServer() {
 /***********************************************************************
  *		DllUnregisterServer (DMSTYLE.4)
  */
-HRESULT WINAPI DllUnregisterServer() {
+HRESULT WINAPI DllUnregisterServer(void) {
     HRESULT hr;
 
     TRACE("\n");
diff --git a/dlls/gphoto2.ds/ds_image.c b/dlls/gphoto2.ds/ds_image.c
index 4196813..8dbba1d 100644
--- a/dlls/gphoto2.ds/ds_image.c
+++ b/dlls/gphoto2.ds/ds_image.c
@@ -137,7 +137,7 @@ TW_UINT16 GPHOTO2_ImageFileXferGet (pTW_IDENTITY pOrigin,
 }
 
 #ifdef HAVE_GPHOTO2
-static TW_UINT16 _get_image_and_startup_jpeg() {
+static TW_UINT16 _get_image_and_startup_jpeg(void) {
     const char *folder = NULL, *filename = NULL;
     struct gphoto2_file *file;
     const unsigned char *filedata;
diff --git a/dlls/msxml3/domimpl.c b/dlls/msxml3/domimpl.c
index 090c2c4..ec89fb4 100644
--- a/dlls/msxml3/domimpl.c
+++ b/dlls/msxml3/domimpl.c
@@ -212,7 +212,7 @@ static const struct IXMLDOMImplementationVtbl dimimpl_vtbl =
     dimimpl_hasFeature
 };
 
-IUnknown* create_doc_Implementation()
+IUnknown* create_doc_Implementation(void)
 {
     domimpl *This;
 
diff --git a/dlls/winex11.drv/ime.c b/dlls/winex11.drv/ime.c
index f50549f..7d58431 100644
--- a/dlls/winex11.drv/ime.c
+++ b/dlls/winex11.drv/ime.c
@@ -1004,7 +1004,7 @@ LRESULT IME_SendMessageToSelectedHWND(UINT msg, WPARAM wParam, LPARAM lParam)
     return rc;
 }
 
-INT IME_GetCursorPos()
+INT IME_GetCursorPos(void)
 {
     LPINPUTCONTEXT lpIMC;
     INT rc = 0;





More information about the wine-patches mailing list