Linux: use reserved name __key in pkey_get [BZ #22797]
authorIgor Gnatenko <ignatenko@redhat.com>
Wed, 7 Feb 2018 11:11:39 +0000 (12:11 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 7 Feb 2018 11:11:39 +0000 (12:11 +0100)
_key is not reserved name and we should avoid using that. It seems that
it was simple typo when pkey_* was implemented.

ChangeLog
sysdeps/unix/sysv/linux/bits/mman-shared.h

index 9fa22daae5a7140dbf12128e30a1e546bcb74237..290d474218e39c984cd546c9b2e20760291eca4f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
index 7715e680caa9551a24ea02e8a7d611c4f6509de4..d15ba95c9dc6ee597bded16772d525ff17027a20 100644 (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.  */