summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison@virgin.net>2010-02-26 14:40:30 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2010-03-16 13:56:58 +0000
commitcca4952d750779a4c58a11fe08a53336042930bb (patch)
treea6cc08aac2a55ae9820304fd6db659eee0c4851c
parentb8cf4153f84404b2a1b62a247d5d36d24bf481da (diff)
Xming: Warning fixes
Fix warnings due to prototypes not specifying function arguments Fix warning with RegQueryValueEx() Tidy up an include Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r--hw/xwin/win.h2
-rw-r--r--hw/xwin/winauth.c2
-rw-r--r--hw/xwin/winconfig.c2
-rwxr-xr-xhw/xwin/winwindowswm.c2
-rw-r--r--os/osdep.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/hw/xwin/win.h b/hw/xwin/win.h
index 9ab8ed976..5cda9701c 100644
--- a/hw/xwin/win.h
+++ b/hw/xwin/win.h
@@ -196,7 +196,7 @@
* Windows headers
*/
#include "winms.h"
-#include "./winresource.h"
+#include "winresource.h"
/*
diff --git a/hw/xwin/winauth.c b/hw/xwin/winauth.c
index fcd1872da..f4c400582 100644
--- a/hw/xwin/winauth.c
+++ b/hw/xwin/winauth.c
@@ -122,7 +122,7 @@ GenerateAuthorization(
*/
Bool
-winGenerateAuthorization ()
+winGenerateAuthorization (void)
{
Bool fFreeAuth = FALSE;
SecurityAuthorizationPtr pAuth = NULL;
diff --git a/hw/xwin/winconfig.c b/hw/xwin/winconfig.c
index 259b3d238..b05867ba9 100644
--- a/hw/xwin/winconfig.c
+++ b/hw/xwin/winconfig.c
@@ -330,7 +330,7 @@ winConfigKeyboard (DeviceIntPtr pDevice)
const char regtempl[] =
"SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts\\";
char *regpath;
- char lname[256];
+ unsigned char lname[256];
DWORD namesize = sizeof(lname);
regpath = malloc(sizeof(regtempl) + KL_NAMELENGTH + 1);
diff --git a/hw/xwin/winwindowswm.c b/hw/xwin/winwindowswm.c
index 00572a13b..7dce7e379 100755
--- a/hw/xwin/winwindowswm.c
+++ b/hw/xwin/winwindowswm.c
@@ -81,7 +81,7 @@ make_box (int x, int y, int w, int h)
}
void
-winWindowsWMExtensionInit ()
+winWindowsWMExtensionInit (void)
{
ExtensionEntry* extEntry;
diff --git a/os/osdep.h b/os/osdep.h
index 3d75bbaab..7b1c69995 100644
--- a/os/osdep.h
+++ b/os/osdep.h
@@ -200,7 +200,7 @@ extern int *ConnectionTranslation;
#else
extern int GetConnectionTranslation(int conn);
extern void SetConnectionTranslation(int conn, int client);
-extern void ClearConnectionTranslation();
+extern void ClearConnectionTranslation(void);
#endif
extern Bool NewOutputPending;