Mark bunch of misc. tables & such read-only in librpmio
This commit is contained in:
parent
17fc6663ef
commit
8fde231cac
|
@ -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++) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue