1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-02-20 19:33:40 +00:00

Fixed compiler warning

This commit is contained in:
Bryan Roe
2019-09-20 17:12:41 -07:00
parent 67c907b22c
commit 6193fbbe5f

View File

@@ -700,7 +700,7 @@ void* kvm_server_mainloop(void* parm)
if (XE.type == (event_base + 1))
{
char buffer[8];
Atom cursor_atom = NULL;
Atom cursor_atom = (Atom)0;
if (sizeof(void*) == 8)
{
// 64bit
@@ -718,7 +718,7 @@ void* kvm_server_mainloop(void* parm)
}
}
char *name = cursor_atom != NULL ? (x11_exports->XGetAtomName(cursordisplay, cursor_atom)) : NULL;
char *name = cursor_atom != (Atom)0 ? (x11_exports->XGetAtomName(cursordisplay, cursor_atom)) : (Atom)0;
int curcursor = KVM_MouseCursor_HELP;
if (name != NULL)