Suppress compiler warning by adding a type cast.
This commit is contained in:
parent
26848a57d8
commit
79f6b4c4a3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user