libc: fix sysctl(3) error code
All unimplemented sysctl calls would return 2 instead of -1. Change-Id: Ib486a03dc93969e646e4e11d890dc46855d790c4
This commit is contained in:
parent
c97d4ff6e5
commit
0184c63535
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ int __sysctl(const int *name, unsigned int namelen,
|
|||
void *oldp, size_t *oldlenp,
|
||||
const void *newp, size_t newlen)
|
||||
{
|
||||
return ENOENT;
|
||||
errno = ENOENT;
|
||||
return -1;
|
||||
}
|
||||
#endif /* defined(__minix) */
|
||||
|
||||
|
|
Loading…
Reference in a new issue