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