Suppress compiler warning by adding a type cast.

This commit is contained in:
ru 2001-05-17 12:51:43 +00:00
parent 26848a57d8
commit 79f6b4c4a3

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);
}