Xming: Fix warnings in windialogs.c
windialogs.c: In function ‘winDisplayExitDialog’: windialogs.c:327: warning: passing argument 3 of ‘PostMessageA’ makes integer from pointer without a cast windialogs.c: In function ‘winDisplayAboutDialog’: windialogs.c:597: warning: passing argument 3 of ‘PostMessageA’ makes integer from pointer without a cast windialogs.c: In function ‘winAboutDlgProc’: windialogs.c:697: warning: comparison between pointer and integer windialogs.c:701: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘HINSTANCE’ windialogs.c:716: warning: assignment makes integer from pointer without a cast windialogs.c:736: warning: assignment makes integer from pointer without a cast windialogs.c:756: warning: assignment makes integer from pointer without a cast Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
6d9fb07db2
commit
da5955cc02
|
@ -324,7 +324,7 @@ winDisplayExitDialog (winPrivScreenPtr pScreenPriv)
|
||||||
|
|
||||||
/* Set focus to the Cancel button */
|
/* Set focus to the Cancel button */
|
||||||
PostMessage (g_hDlgExit, WM_NEXTDLGCTL,
|
PostMessage (g_hDlgExit, WM_NEXTDLGCTL,
|
||||||
GetDlgItem (g_hDlgExit, IDCANCEL), TRUE);
|
(WPARAM)GetDlgItem (g_hDlgExit, IDCANCEL), TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define CONNECTED_CLIENTS_FORMAT "There %s currently %d client%s connected."
|
#define CONNECTED_CLIENTS_FORMAT "There %s currently %d client%s connected."
|
||||||
|
@ -594,7 +594,7 @@ winDisplayAboutDialog (winPrivScreenPtr pScreenPriv)
|
||||||
|
|
||||||
/* Set focus to the OK button */
|
/* Set focus to the OK button */
|
||||||
PostMessage (g_hDlgAbout, WM_NEXTDLGCTL,
|
PostMessage (g_hDlgAbout, WM_NEXTDLGCTL,
|
||||||
GetDlgItem (g_hDlgAbout, IDOK), TRUE);
|
(WPARAM)GetDlgItem (g_hDlgAbout, IDOK), TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -675,7 +675,7 @@ winAboutDlgProc (HWND hwndDialog, UINT message,
|
||||||
|
|
||||||
case ID_ABOUT_CHANGELOG:
|
case ID_ABOUT_CHANGELOG:
|
||||||
{
|
{
|
||||||
HINSTANCE iReturn;
|
int iReturn;
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
const char * pszCygPath = "/usr/X11R6/share/doc/"
|
const char * pszCygPath = "/usr/X11R6/share/doc/"
|
||||||
"xorg-x11-xwin/changelog.html";
|
"xorg-x11-xwin/changelog.html";
|
||||||
|
@ -688,7 +688,7 @@ winAboutDlgProc (HWND hwndDialog, UINT message,
|
||||||
"devel/server/changelog.html";
|
"devel/server/changelog.html";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
iReturn = ShellExecute (NULL,
|
iReturn = (int)ShellExecute (NULL,
|
||||||
"open",
|
"open",
|
||||||
pszWinPath,
|
pszWinPath,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -708,7 +708,7 @@ winAboutDlgProc (HWND hwndDialog, UINT message,
|
||||||
const char * pszPath = __VENDORDWEBSUPPORT__;
|
const char * pszPath = __VENDORDWEBSUPPORT__;
|
||||||
int iReturn;
|
int iReturn;
|
||||||
|
|
||||||
iReturn = ShellExecute (NULL,
|
iReturn = (int)ShellExecute (NULL,
|
||||||
"open",
|
"open",
|
||||||
pszPath,
|
pszPath,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -728,7 +728,7 @@ winAboutDlgProc (HWND hwndDialog, UINT message,
|
||||||
const char * pszPath = "http://x.cygwin.com/docs/ug/";
|
const char * pszPath = "http://x.cygwin.com/docs/ug/";
|
||||||
int iReturn;
|
int iReturn;
|
||||||
|
|
||||||
iReturn = ShellExecute (NULL,
|
iReturn = (int)ShellExecute (NULL,
|
||||||
"open",
|
"open",
|
||||||
pszPath,
|
pszPath,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -748,7 +748,7 @@ winAboutDlgProc (HWND hwndDialog, UINT message,
|
||||||
const char * pszPath = "http://x.cygwin.com/docs/faq/";
|
const char * pszPath = "http://x.cygwin.com/docs/faq/";
|
||||||
int iReturn;
|
int iReturn;
|
||||||
|
|
||||||
iReturn = ShellExecute (NULL,
|
iReturn = (int)ShellExecute (NULL,
|
||||||
"open",
|
"open",
|
||||||
pszPath,
|
pszPath,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
Loading…
Reference in New Issue