Linux: use reserved name __key in pkey_get [BZ #22797]

_key is not reserved name and we should avoid using that. It seems that
it was simple typo when pkey_* was implemented.
This commit is contained in:
Igor Gnatenko 2018-02-07 12:11:39 +01:00 committed by Florian Weimer
parent 0d40d0ecba
commit 388ff7bd0d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
[BZ #22797]
* sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
missing second underscore to parameter name.
2018-02-06 Joseph Myers <joseph@codesourcery.com>
[BZ #14508]

View File

@ -61,7 +61,7 @@ int pkey_set (int __key, unsigned int __access_rights) __THROW;
/* Return the access rights for the current thread for KEY, which must
have been allocated using pkey_alloc. */
int pkey_get (int _key) __THROW;
int pkey_get (int __key) __THROW;
/* Free an allocated protection key, which must have been allocated
using pkey_alloc. */