diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-08-07 12:57:15 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-08-07 13:10:27 +0000 |
commit | 54e97c027e52eec39220cc08b62ab480095ac5d7 (patch) | |
tree | 4eef9971ab8f50c30701980a2a1ef8a87caf5bab /libpam/include | |
parent | 05b7aa13d9cc57ac6d303937e630e92d94825ee5 (diff) | |
download | pam-54e97c027e52eec39220cc08b62ab480095ac5d7.tar.gz pam-54e97c027e52eec39220cc08b62ab480095ac5d7.tar.bz2 pam-54e97c027e52eec39220cc08b62ab480095ac5d7.zip |
libpam: avoid reserved variable names in macros
Identifiers staring with an underscores are reserved by the C standard.
Also avoid double underscore, which are reserved by C++, in header file.
Diffstat (limited to 'libpam/include')
-rw-r--r-- | libpam/include/security/_pam_macros.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libpam/include/security/_pam_macros.h b/libpam/include/security/_pam_macros.h index b5129d2a..0d6646cf 100644 --- a/libpam/include/security/_pam_macros.h +++ b/libpam/include/security/_pam_macros.h @@ -21,21 +21,21 @@ * override the memory. */ -#define _pam_overwrite(x) \ -do { \ - PAM_DEPRECATED register char *__xx__; \ - if ((__xx__=(x))) \ - while (*__xx__) \ - *__xx__++ = '\0'; \ +#define _pam_overwrite(x) \ +do { \ + PAM_DEPRECATED register char *xx_; \ + if ((xx_=(x))) \ + while (*xx_) \ + *xx_++ = '\0'; \ } while (0) -#define _pam_overwrite_n(x,n) \ -do { \ - PAM_DEPRECATED register char *__xx__; \ - register unsigned int __i__ = 0; \ - if ((__xx__=(x))) \ - for (;__i__<n; __i__++) \ - __xx__[__i__] = 0; \ +#define _pam_overwrite_n(x,n) \ +do { \ + PAM_DEPRECATED register char *xx_; \ + register unsigned int i_ = 0; \ + if ((xx_=(x))) \ + for (;i_<n; i_++) \ + xx_[i_] = 0; \ } while (0) /* |