diff --git a/clients/lcdproc/machine_FreeBSD.c b/clients/lcdproc/machine_FreeBSD.c index 7a7a47e..ace9364 100644 --- a/clients/lcdproc/machine_FreeBSD.c +++ b/clients/lcdproc/machine_FreeBSD.c @@ -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 */