Declare constant data structure const

./lib/pam_defs.h:18:24: warning: ‘conv’ defined but not used [-Wunused-variable]
       18 | static struct pam_conv conv = {
          |                        ^~~~
This commit is contained in:
Christian Göttsche 2023-01-24 16:50:49 +01:00 committed by Iker Pedrosa
parent 89be7c0465
commit 194014678e

View File

@ -15,7 +15,7 @@
#endif
static struct pam_conv conv = {
static const struct pam_conv conv = {
SHADOW_PAM_CONVERSATION,
NULL
};