diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2024-01-04 18:24:01 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-01-15 20:01:23 +0000 |
commit | e6495e6aa500ec28b6e73a81c48bb4a652a7b386 (patch) | |
tree | 4f92d935e5a8283e34207b9a8ed35cf131a0dc98 /modules/pam_unix/support.h | |
parent | 9f19e7da7a014e022cdbba06accca171adef27e0 (diff) | |
download | pam-e6495e6aa500ec28b6e73a81c48bb4a652a7b386.tar.gz pam-e6495e6aa500ec28b6e73a81c48bb4a652a7b386.tar.bz2 pam-e6495e6aa500ec28b6e73a81c48bb4a652a7b386.zip |
pam_unix: enclose macro arguments
Diffstat (limited to 'modules/pam_unix/support.h')
-rw-r--r-- | modules/pam_unix/support.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/pam_unix/support.h b/modules/pam_unix/support.h index 81054002..e8f629d7 100644 --- a/modules/pam_unix/support.h +++ b/modules/pam_unix/support.h @@ -31,7 +31,7 @@ typedef struct { * macro to determine if a given flag is on */ -#define on(x,ctrl) (unix_args[x].flag & ctrl) +#define on(x,ctrl) (unix_args[x].flag & (ctrl)) /* * macro to determine that a given flag is NOT on @@ -43,8 +43,8 @@ typedef struct { * macro to turn on/off a ctrl flag manually */ -#define set(x,ctrl) (ctrl = ((ctrl)&unix_args[x].mask)|unix_args[x].flag) -#define unset(x,ctrl) (ctrl &= ~(unix_args[x].flag)) +#define set(x,ctrl) ((ctrl) = ((ctrl)&unix_args[x].mask)|unix_args[x].flag) +#define unset(x,ctrl) ((ctrl) &= ~(unix_args[x].flag)) /* the generic mask */ |