fixed some warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -167,7 +167,7 @@ LockResult wxSingleInstanceCheckerImpl::CreateLockFile()
|
|||||||
|
|
||||||
// use char here, not wxChar!
|
// use char here, not wxChar!
|
||||||
char buf[256]; // enough for any PID size
|
char buf[256]; // enough for any PID size
|
||||||
int len = sprintf(buf, "%d", m_pidLocker) + 1;
|
int len = sprintf(buf, "%d", (int)m_pidLocker) + 1;
|
||||||
|
|
||||||
if ( write(m_fdLock, buf, len) != len )
|
if ( write(m_fdLock, buf, len) != len )
|
||||||
{
|
{
|
||||||
@@ -254,7 +254,7 @@ bool wxSingleInstanceCheckerImpl::Create(const wxString& name)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( sscanf(buf, "%d", &m_pidLocker) == 1 )
|
if ( sscanf(buf, "%d", (int *)&m_pidLocker) == 1 )
|
||||||
{
|
{
|
||||||
if ( kill(m_pidLocker, 0) != 0 )
|
if ( kill(m_pidLocker, 0) != 0 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user