From: Igor Gnatenko Date: Wed, 7 Feb 2018 11:11:39 +0000 (+0100) Subject: Linux: use reserved name __key in pkey_get [BZ #22797] X-Git-Tag: glibc-2.28~630 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=388ff7bd0d57d7061fdd39a2f26f65687e8058da;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index 9fa22daae5a..290d474218e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-02-07 Igor Gnatenko + + [BZ #22797] + * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add + missing second underscore to parameter name. + 2018-02-06 Joseph Myers [BZ #14508] diff --git a/sysdeps/unix/sysv/linux/bits/mman-shared.h b/sysdeps/unix/sysv/linux/bits/mman-shared.h index 7715e680caa..d15ba95c9dc 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. */