From 5bd5ab8b167115104c361b3d417ed16059493a9c Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Thu, 22 Feb 2024 17:04:00 +0100 Subject: libpam: enclose macro parameters --- libpam/include/security/_pam_macros.h | 24 ++++++++++++------------ libpam/pam_dispatch.c | 4 ++-- libpam/pam_private.h | 14 +++++++------- 3 files changed, 21 insertions(+), 21 deletions(-) (limited to 'libpam') diff --git a/libpam/include/security/_pam_macros.h b/libpam/include/security/_pam_macros.h index cd42bf72..d01f51f5 100644 --- a/libpam/include/security/_pam_macros.h +++ b/libpam/include/security/_pam_macros.h @@ -34,7 +34,7 @@ do { \ PAM_DEPRECATED register char *xx_; \ register unsigned int i_ = 0; \ if ((xx_=(x))) \ - for (;i_ 0) #define _PAM_ACTION_IGNORE 0 -#define _PAM_ACTION_OK -1 -#define _PAM_ACTION_DONE -2 -#define _PAM_ACTION_BAD -3 -#define _PAM_ACTION_DIE -4 -#define _PAM_ACTION_RESET -5 +#define _PAM_ACTION_OK (-1) +#define _PAM_ACTION_DONE (-2) +#define _PAM_ACTION_BAD (-3) +#define _PAM_ACTION_DIE (-4) +#define _PAM_ACTION_RESET (-5) /* Add any new entries here. Will need to change ..._UNDEF and then * need to change pam_tokens.h */ -#define _PAM_ACTION_UNDEF -6 /* this is treated as an error +#define _PAM_ACTION_UNDEF (-6) /* this is treated as an error ( = _PAM_ACTION_BAD) */ #define PAM_SUBSTACK_MAX_LEVEL 16 /* maximum level of substacks */ -- cgit v1.2.3