diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-03-06 19:27:19 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-03-06 19:27:19 +0200 |
commit | 8fde231cac3a597a9199fd36c5c597555895644c (patch) | |
tree | 6d6954e430d4a0904ba0d4ce7a90e3a9e24e2532 /rpmio | |
parent | 17fc6663ef4bd647934876638f3aa2edf34d3ce4 (diff) | |
download | rpm-8fde231cac3a597a9199fd36c5c597555895644c.tar.gz rpm-8fde231cac3a597a9199fd36c5c597555895644c.tar.bz2 rpm-8fde231cac3a597a9199fd36c5c597555895644c.zip |
Mark bunch of misc. tables & such read-only in librpmio
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/digest.c | 2 | ||||
-rw-r--r-- | rpmio/rpmio_internal.h | 2 | ||||
-rw-r--r-- | rpmio/rpmlog.c | 2 | ||||
-rw-r--r-- | rpmio/url.c | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/rpmio/digest.c b/rpmio/digest.c index e4ae2493d..5becb6e39 100644 --- a/rpmio/digest.c +++ b/rpmio/digest.c @@ -147,7 +147,7 @@ DPRINTF((stderr, "*** Final(%p,%p,%p,%zd) hashctx %p digest %p\n", ctx, datap, l if (lenp) *lenp = (2*digestlen) + 1; if (datap) { const uint8_t * s = (const uint8_t *) digest; - static const char hex[] = "0123456789abcdef"; + static const char const hex[] = "0123456789abcdef"; *datap = t = xmalloc((2*digestlen) + 1); for (i = 0 ; i < digestlen; i++) { diff --git a/rpmio/rpmio_internal.h b/rpmio/rpmio_internal.h index b516f20f5..81006c0cc 100644 --- a/rpmio/rpmio_internal.h +++ b/rpmio/rpmio_internal.h @@ -216,7 +216,7 @@ void fdstat_exit(FD_t fd, int opx, ssize_t rc) static inline void fdstat_print(FD_t fd, const char * msg, FILE * fp) { - static int usec_scale = (1000*1000); + static const int usec_scale = (1000*1000); int opx; if (fd == NULL || fd->stats == NULL) return; diff --git a/rpmio/rpmlog.c b/rpmio/rpmlog.c index 87ecdb189..cb3ef856c 100644 --- a/rpmio/rpmlog.c +++ b/rpmio/rpmlog.c @@ -143,7 +143,7 @@ FILE * rpmlogSetFile(FILE * fp) return ofp; } -static const char *rpmlogMsgPrefix[] = { +static const char * const rpmlogMsgPrefix[] = { N_("fatal error: "),/*!< RPMLOG_EMERG */ N_("fatal error: "),/*!< RPMLOG_ALERT */ N_("fatal error: "),/*!< RPMLOG_CRIT */ diff --git a/rpmio/url.c b/rpmio/url.c index 4ce8adf5a..23536f143 100644 --- a/rpmio/url.c +++ b/rpmio/url.c @@ -66,9 +66,9 @@ urlinfo urlFree(urlinfo u) /** */ static struct urlstring { - const char * leadin; + const char const * leadin; urltype ret; -} urlstrings[] = { +} const urlstrings[] = { { "file://", URL_IS_PATH }, { "ftp://", URL_IS_FTP }, { "hkp://", URL_IS_HKP }, @@ -80,7 +80,7 @@ static struct urlstring { urltype urlIsURL(const char * url) { - struct urlstring *us; + const struct urlstring *us; if (url && *url) { for (us = urlstrings; us->leadin != NULL; us++) { |