Make this compile with GCC4 by fixing a signedness issue.

Reviewed by:	md5(1)
This commit is contained in:
Maxime Henrion 2005-04-26 14:51:09 +00:00
parent eaa8e3e8c5
commit 140490e266

View File

@ -432,7 +432,7 @@ devstat_getdevs(kvm_t *kd, struct statinfo *stats)
*/
if ((dinfo->numdevs = devstat_getnumdevs(kd)) == -1)
return(-1);
if ((dinfo->mem_ptr = get_devstat_kvm(kd)) == NULL)
if ((dinfo->mem_ptr = (u_int8_t *)get_devstat_kvm(kd)) == NULL)
return(-1);
}
/*