From 5b32005575079da789d49869870066e8784e6924 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 6 Mar 2008 19:24:56 +0200 Subject: [PATCH] Further read-only tables in rpmpgp.. --- rpmio/rpmpgp.c | 16 ++++++++-------- rpmio/rpmpgp.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c index c42a2c0..1f0c4ae 100644 --- a/rpmio/rpmpgp.c +++ b/rpmio/rpmpgp.c @@ -404,12 +404,12 @@ int pgpPrtSubType(const uint8_t *h, size_t hlen, pgpSigType sigtype) return 0; } -static const char * pgpSigRSA[] = { +static const char * const pgpSigRSA[] = { " m**d =", NULL, }; -static const char * pgpSigDSA[] = { +static const char * const pgpSigDSA[] = { " r =", " s =", NULL, @@ -595,14 +595,14 @@ fprintf(stderr, " unhash[%zu] -- %s\n", plen, pgpHexStr(p, plen)); return rc; } -static const char * pgpPublicRSA[] = { +static const char * const pgpPublicRSA[] = { " n =", " e =", NULL, }; #ifdef NOTYET -static const char * pgpSecretRSA[] = { +static const char * const pgpSecretRSA[] = { " d =", " p =", " q =", @@ -611,7 +611,7 @@ static const char * pgpSecretRSA[] = { }; #endif -static const char * pgpPublicDSA[] = { +static const char * const pgpPublicDSA[] = { " p =", " q =", " g =", @@ -620,13 +620,13 @@ static const char * pgpPublicDSA[] = { }; #ifdef NOTYET -static const char * pgpSecretDSA[] = { +static const char * const pgpSecretDSA[] = { " x =", NULL, }; #endif -static const char * pgpPublicELGAMAL[] = { +static const char * const pgpPublicELGAMAL[] = { " p =", " g =", " y =", @@ -634,7 +634,7 @@ static const char * pgpPublicELGAMAL[] = { }; #ifdef NOTYET -static const char * pgpSecretELGAMAL[] = { +static const char * const pgpSecretELGAMAL[] = { " x =", NULL, }; diff --git a/rpmio/rpmpgp.h b/rpmio/rpmpgp.h index ed028a1..a97e721 100644 --- a/rpmio/rpmpgp.h +++ b/rpmio/rpmpgp.h @@ -1036,7 +1036,7 @@ size_t pgpMpiLen(const uint8_t *p) static inline char * pgpHexCvt(char *t, const uint8_t *s, size_t nbytes) { - static char hex[] = "0123456789abcdef"; + static char const hex[] = "0123456789abcdef"; while (nbytes-- > 0) { size_t i; i = *s++; -- 2.7.4