From dc370deab4752c264c20e16684d02692532c351b Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Thu, 22 Feb 2024 17:04:15 +0100 Subject: conf/modules: constify read-only data arrays --- modules/pam_ftp/pam_ftp.c | 2 +- modules/pam_limits/pam_limits.c | 4 ++-- modules/pam_namespace/pam_namespace.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'modules') diff --git a/modules/pam_ftp/pam_ftp.c b/modules/pam_ftp/pam_ftp.c index 41fb9f48..cfb0f177 100644 --- a/modules/pam_ftp/pam_ftp.c +++ b/modules/pam_ftp/pam_ftp.c @@ -84,7 +84,7 @@ static int lookup(const char *name, const char *list, char **_user) } } else { #define MAX_L 2 - static const char *l[MAX_L] = { "ftp", "anonymous" }; + static const char *const l[MAX_L] = { "ftp", "anonymous" }; int i; for (i=0; iuser}; const char *rvar_values[] = {rhome, idata->ruser}; size_t len; -- cgit v1.2.3