summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorIgor Gnatenko <ignatenko@redhat.com>2018-02-07 13:53:10 +0100
committerFlorian Weimer <fweimer@redhat.com>2018-02-07 13:53:10 +0100
commit56170e064e2b21ce204f0817733e92f1730541ea (patch)
tree647b913af09cd29a5d86b1f35777a6fe5c2a1c2d /sysdeps
parent00c5a2d77a541fa005cb460bd1a45f51f1aa71ea (diff)
downloadglibc-56170e064e2b21ce204f0817733e92f1730541ea.tar.gz
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. (cherry picked from commit 388ff7bd0d57d7061fdd39a2f26f65687e8058da)
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/bits/mman-shared.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/mman-shared.h b/sysdeps/unix/sysv/linux/bits/mman-shared.h
index 7715e680ca..d15ba95c9d 100644
--- a/sysdeps/unix/sysv/linux/bits/mman-shared.h
+++ b/sysdeps/unix/sysv/linux/bits/mman-shared.h
@@ -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. */