aboutsummaryrefslogtreecommitdiff
path: root/libpam/pam_private.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2024-02-22 17:04:00 +0100
committerDmitry V. Levin <ldv@strace.io>2024-02-22 16:04:00 +0000
commit5bd5ab8b167115104c361b3d417ed16059493a9c (patch)
tree0ced2bbf5abe7c3b396d5f8bcf49c8ee5e37edd5 /libpam/pam_private.h
parente559de0cdd6134a4b87a79aab6928fb1e8c7194c (diff)
downloadpam-5bd5ab8b167115104c361b3d417ed16059493a9c.tar.gz
pam-5bd5ab8b167115104c361b3d417ed16059493a9c.tar.bz2
pam-5bd5ab8b167115104c361b3d417ed16059493a9c.zip
libpam: enclose macro parameters
Diffstat (limited to 'libpam/pam_private.h')
-rw-r--r--libpam/pam_private.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libpam/pam_private.h b/libpam/pam_private.h
index f9dd6223..77dc5a69 100644
--- a/libpam/pam_private.h
+++ b/libpam/pam_private.h
@@ -48,7 +48,7 @@
/* components of the pam_handle structure */
-#define _PAM_INVALID_RETVAL -1 /* default value for cached_retval */
+#define _PAM_INVALID_RETVAL (-1) /* default value for cached_retval */
struct handler {
int handler_type;
@@ -193,14 +193,14 @@ struct pam_handle {
#define _PAM_ACTION_IS_JUMP(x) ((x) > 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 */