]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Declare constant data structure const
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 24 Jan 2023 15:50:49 +0000 (16:50 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Wed, 25 Jan 2023 11:31:17 +0000 (12:31 +0100)
    ./lib/pam_defs.h:18:24: warning: ‘conv’ defined but not used [-Wunused-variable]
       18 | static struct pam_conv conv = {
          |                        ^~~~

lib/pam_defs.h

index 2dcda3cd4eb8c70f50ca1582fe825632c9339ed7..dd016e5ccd11c46a93f7c5febed4c1006028d17d 100644 (file)
@@ -15,7 +15,7 @@
 #endif
 
 
-static struct pam_conv conv = {
+static const struct pam_conv conv = {
        SHADOW_PAM_CONVERSATION,
        NULL
 };