Cast pointer correctly

This commit is contained in:
mmdolze
2009-05-14 06:18:55 +00:00
parent 38fa2720cf
commit bda3765110
+1 -1
View File
@@ -382,7 +382,7 @@ int machine_get_smpload(load_type *result, int *numcpus)
#ifdef HAVE_SYS_PCPU_H
pcpudata = kvm_getpcpu(kvmd, i);
if (pcpudata == NULL || pcpudata == -1)
if (pcpudata == NULL || pcpudata == (void *) -1)
return(FALSE);
/* extract the data for single CPU */