From 6193fbbe5f44b493f4371c59a5aa61f5b7e1c771 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Fri, 20 Sep 2019 17:12:41 -0700 Subject: [PATCH] Fixed compiler warning --- meshcore/KVM/Linux/linux_kvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshcore/KVM/Linux/linux_kvm.c b/meshcore/KVM/Linux/linux_kvm.c index ddd0419..82dc1f9 100644 --- a/meshcore/KVM/Linux/linux_kvm.c +++ b/meshcore/KVM/Linux/linux_kvm.c @@ -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)