]> granicus.if.org Git - p11-kit/commitdiff
Add appropriate const qualifiers
authorStef Walter <stef@thewalter.net>
Thu, 18 Jul 2013 14:12:30 +0000 (16:12 +0200)
committerStef Walter <stef@thewalter.net>
Thu, 18 Jul 2013 14:12:30 +0000 (16:12 +0200)
p11-kit/conf.c
trust/extract-openssl.c

index 0ecb40ad6c0ffa28410218ee4e525cebe4e66462..2a6dc5cef7606b38722766d5c7ab560e560aa8eb 100644 (file)
@@ -287,7 +287,7 @@ static char *
 calc_name_from_filename (const char *fname)
 {
        /* We eventually want to settle on .module */
-       static const char const *suffix = ".module";
+       static const char *const suffix = ".module";
        static const size_t suffix_len = 7;
        const char *c = fname;
        size_t fname_len;
index 666f18996fc526b5c7258ba7b6b5e2479a48b6a1..c263ba1b040f35d0545aa36d254877dec39edc3e 100644 (file)
@@ -79,7 +79,7 @@ known_usages (p11_array *oids)
        char *string;
        int i;
 
-       static const char *strings[] = {
+       static const char *const strings[] = {
                P11_OID_SERVER_AUTH_STR,
                P11_OID_CLIENT_AUTH_STR,
                P11_OID_CODE_SIGNING_STR,