Suppress compiler warning by adding a type cast.

This commit is contained in:
ru 2001-05-17 12:51:43 +00:00
parent 17ca7871ca
commit c632b830a9

View File

@ -47,9 +47,7 @@ sysctlnametomib(const char *name, int *mibp, size_t *sizep)
oid[1] = 3;
*sizep *= sizeof (int);
error = sysctl(oid, 2, mibp, sizep, name, strlen(name));
error = sysctl(oid, 2, mibp, sizep, (void *)name, strlen(name));
*sizep /= sizeof (int);
if (error < 0)
return (error);
return (0);
return (error);
}