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
|
||||
pcpudata = kvm_getpcpu(kvmd, i);
|
||||
|
||||
if (pcpudata == NULL || pcpudata == -1)
|
||||
if (pcpudata == NULL || pcpudata == (void *) -1)
|
||||
return(FALSE);
|
||||
|
||||
/* extract the data for single CPU */
|
||||
|
||||
Reference in new issue
Block a user