summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/depends.c6
-rw-r--r--lib/misc.c2
-rw-r--r--lib/psm.c2
-rw-r--r--lib/rpmlib.h8
4 files changed, 9 insertions, 9 deletions
diff --git a/lib/depends.c b/lib/depends.c
index 3eae65e47..5465c3642 100644
--- a/lib/depends.c
+++ b/lib/depends.c
@@ -34,11 +34,11 @@ struct orderListIndex_s {
static int _cacheDependsRC = 1;
-const char *rpmNAME = PACKAGE;
+const char * const rpmNAME = PACKAGE;
-const char *rpmEVR = VERSION;
+const char * const rpmEVR = VERSION;
-int rpmFLAGS = RPMSENSE_EQUAL;
+const int rpmFLAGS = RPMSENSE_EQUAL;
/* rpmlib provides */
static rpmds rpmlibP = NULL;
diff --git a/lib/misc.c b/lib/misc.c
index 786e5b276..14b5ae4c7 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -5,7 +5,7 @@
#include "system.h"
/* just to put a marker in librpm.a */
-const char * RPMVERSION = VERSION;
+const char * const RPMVERSION = VERSION;
#include <rpm/rpmurl.h>
#include <rpm/rpmmacro.h> /* XXX for rpmGetPath */
diff --git a/lib/psm.c b/lib/psm.c
index 3a000844d..a1fafd8f9 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -432,7 +432,7 @@ exit:
return rpmrc;
}
-static const char * SCRIPT_PATH = "PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin";
+static const char * const SCRIPT_PATH = "PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin";
/**
* Return scriptlet name from tag.
diff --git a/lib/rpmlib.h b/lib/rpmlib.h
index f0df32814..c7bea3d3d 100644
--- a/lib/rpmlib.h
+++ b/lib/rpmlib.h
@@ -23,13 +23,13 @@ extern struct rpmMacroContext_s * rpmGlobalMacroContext;
extern struct rpmMacroContext_s * rpmCLIMacroContext;
-extern const char * RPMVERSION;
+extern const char * const RPMVERSION;
-extern const char * rpmNAME;
+extern const char * const rpmNAME;
-extern const char * rpmEVR;
+extern const char * const rpmEVR;
-extern int rpmFLAGS;
+extern const int rpmFLAGS;
/** \ingroup header
* Translate and merge legacy signature tags into header.