Cast pointer correctly
This commit is contained in:
1 parent
38fa2720cf
commit
bda3765110
1 file changed
+1
-1
@@ -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