diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2024-02-22 17:04:15 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-02-22 16:04:15 +0000 |
commit | dc370deab4752c264c20e16684d02692532c351b (patch) | |
tree | 5508495ee1479f6c2b07991dd6c216732ed1a22c /modules/pam_limits/pam_limits.c | |
parent | bcc3b81b920491fa9ec94e3fc584cf7384e8380d (diff) | |
download | pam-dc370deab4752c264c20e16684d02692532c351b.tar.gz pam-dc370deab4752c264c20e16684d02692532c351b.tar.bz2 pam-dc370deab4752c264c20e16684d02692532c351b.zip |
conf/modules: constify read-only data arrays
Diffstat (limited to 'modules/pam_limits/pam_limits.c')
-rw-r--r-- | modules/pam_limits/pam_limits.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_limits/pam_limits.c b/modules/pam_limits/pam_limits.c index 89d03f8a..59cd1f3c 100644 --- a/modules/pam_limits/pam_limits.c +++ b/modules/pam_limits/pam_limits.c @@ -68,7 +68,7 @@ #define LIMIT_RANGE_MIN 2 /* only minimum uid/gid specified (min_uid:) */ #define LIMIT_RANGE_MM 3 /* both min and max uid/gid specified (min_uid:max_uid) */ -static const char *limits_def_names[] = { +static const char *const limits_def_names[] = { "USER", "GROUP", "ALLGROUP", @@ -323,7 +323,7 @@ check_logins (pam_handle_t *pamh, const char *name, int limit, int ctrl, } #ifdef __linux__ -static const char *lnames[RLIM_NLIMITS] = { +static const char *const lnames[RLIM_NLIMITS] = { [RLIMIT_CPU] = "Max cpu time", [RLIMIT_FSIZE] = "Max file size", [RLIMIT_DATA] = "Max data size", |