summaryrefslogtreecommitdiff
path: root/lib/psm.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-03-07 08:20:03 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-03-07 08:20:03 +0200
commit3be0a4b2f863e213af45b0495254108c13415a1f (patch)
tree5e5bcff1c5aef0b81762a58140081e1231c01057 /lib/psm.c
parent2e3972aebf3db7a6fce83619ea106b80145ed923 (diff)
downloadrpm-3be0a4b2f863e213af45b0495254108c13415a1f.tar.gz
rpm-3be0a4b2f863e213af45b0495254108c13415a1f.tar.bz2
rpm-3be0a4b2f863e213af45b0495254108c13415a1f.zip
Another pile of read-only constants marked as such..
Diffstat (limited to 'lib/psm.c')
-rw-r--r--lib/psm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/psm.c b/lib/psm.c
index e71a9e869..3a000844d 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -107,9 +107,9 @@ int rpmVersionCompare(Header first, Header second)
* @todo Should other macros be added from header when installing a package?
*/
static struct tagMacro {
-const char * macroname; /*!< Macro name to define. */
- rpmTag tag; /*!< Header tag to use for value. */
-} tagMacros[] = {
+ const char *macroname; /*!< Macro name to define. */
+ rpmTag tag; /*!< Header tag to use for value. */
+} const tagMacros[] = {
{ "name", RPMTAG_NAME },
{ "version", RPMTAG_VERSION },
{ "release", RPMTAG_RELEASE },
@@ -126,7 +126,7 @@ const char * macroname; /*!< Macro name to define. */
static int rpmInstallLoadMacros(rpmfi fi, Header h)
{
HGE_t hge = (HGE_t) fi->hge;
- struct tagMacro * tagm;
+ const struct tagMacro * tagm;
union {
void * ptr;
const char ** argv;