summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/Event.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-06-30 22:37:26 +0200
committermadmaxoft <github@xoft.cz>2014-07-01 22:48:01 +0200
commit7177806d31a5c6df52a8439bee2f4d150fa0eb47 (patch)
treeab9e70edb3e1b08939c5da9ef0dfde8bf91c6f9c /src/OSSupport/Event.cpp
parentFixed a possibly unused variable. (diff)
downloadcuberite-7177806d31a5c6df52a8439bee2f4d150fa0eb47.tar
cuberite-7177806d31a5c6df52a8439bee2f4d150fa0eb47.tar.gz
cuberite-7177806d31a5c6df52a8439bee2f4d150fa0eb47.tar.bz2
cuberite-7177806d31a5c6df52a8439bee2f4d150fa0eb47.tar.lz
cuberite-7177806d31a5c6df52a8439bee2f4d150fa0eb47.tar.xz
cuberite-7177806d31a5c6df52a8439bee2f4d150fa0eb47.tar.zst
cuberite-7177806d31a5c6df52a8439bee2f4d150fa0eb47.zip
Diffstat (limited to '')
-rw-r--r--src/OSSupport/Event.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/OSSupport/Event.cpp b/src/OSSupport/Event.cpp
index 6b8fccde2..72bce4c3c 100644
--- a/src/OSSupport/Event.cpp
+++ b/src/OSSupport/Event.cpp
@@ -18,7 +18,7 @@ cEvent::cEvent(void)
m_Event = CreateEvent(NULL, FALSE, FALSE, NULL);
if (m_Event == NULL)
{
- LOGERROR("cEvent: cannot create event, GLE = %d. Aborting server.", GetLastError());
+ LOGERROR("cEvent: cannot create event, GLE = %u. Aborting server.", (unsigned)GetLastError());
abort();
}
#else // *nix
@@ -86,7 +86,7 @@ void cEvent::Wait(void)
DWORD res = WaitForSingleObject(m_Event, INFINITE);
if (res != WAIT_OBJECT_0)
{
- LOGWARN("cEvent: waiting for the event failed: %d, GLE = %d. Continuing, but server may be unstable.", res, GetLastError());
+ LOGWARN("cEvent: waiting for the event failed: %u, GLE = %u. Continuing, but server may be unstable.", (unsigned)res, (unsigned)GetLastError());
}
#else
int res = sem_wait(m_Event);
@@ -107,7 +107,7 @@ void cEvent::Set(void)
#ifdef _WIN32
if (!SetEvent(m_Event))
{
- LOGWARN("cEvent: Could not set cEvent: GLE = %d", GetLastError());
+ LOGWARN("cEvent: Could not set cEvent: GLE = %u", (unsigned)GetLastError());
}
#else
int res = sem_post(m_Event);