Cast pointer correctly
This commit is contained in:
@@ -382,7 +382,7 @@ int machine_get_smpload(load_type *result, int *numcpus)
|
|||||||
#ifdef HAVE_SYS_PCPU_H
|
#ifdef HAVE_SYS_PCPU_H
|
||||||
pcpudata = kvm_getpcpu(kvmd, i);
|
pcpudata = kvm_getpcpu(kvmd, i);
|
||||||
|
|
||||||
if (pcpudata == NULL || pcpudata == -1)
|
if (pcpudata == NULL || pcpudata == (void *) -1)
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
|
|
||||||
/* extract the data for single CPU */
|
/* extract the data for single CPU */
|
||||||
|
|||||||
Reference in New Issue
Block a user