summaryrefslogtreecommitdiff
path: root/rpmdb
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-18 09:30:40 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-18 09:30:40 +0200
commita56a86a79247f18e79f1ecab90879c05e6df5f45 (patch)
tree77eb87aec6f7acdc99f96aebfba8a6b47cb0f27e /rpmdb
parentfbd12ed8018a146ca339f684348302d1f85c277d (diff)
downloadlibrpm-tizen-a56a86a79247f18e79f1ecab90879c05e6df5f45.tar.gz
librpm-tizen-a56a86a79247f18e79f1ecab90879c05e6df5f45.tar.bz2
librpm-tizen-a56a86a79247f18e79f1ecab90879c05e6df5f45.zip
Remove bogus const from rpmdb match iterator contents
Diffstat (limited to 'rpmdb')
-rw-r--r--rpmdb/rpmdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c
index 0032eb3f7..3f8ad4955 100644
--- a/rpmdb/rpmdb.c
+++ b/rpmdb/rpmdb.c
@@ -579,7 +579,7 @@ dbiIndexSet dbiFreeIndexSet(dbiIndexSet set) {
typedef struct miRE_s {
rpm_tag_t tag; /*!< header tag */
rpmMireMode mode; /*!< pattern match mode */
- const char * pattern; /*!< pattern string */
+ char * pattern; /*!< pattern string */
int notmatch; /*!< like "grep -v" */
regex_t * preg; /*!< regex compiled pattern buffer */
int cflags; /*!< regcomp(3) flags */
@@ -589,7 +589,7 @@ typedef struct miRE_s {
struct rpmdbMatchIterator_s {
rpmdbMatchIterator mi_next;
- const void * mi_keyp;
+ void * mi_keyp;
size_t mi_keylen;
rpmdb mi_db;
rpm_tag_t mi_rpmtag;
@@ -1733,7 +1733,7 @@ int rpmdbSetIteratorRE(rpmdbMatchIterator mi, rpm_tag_t tag,
{
static rpmMireMode defmode = (rpmMireMode)-1;
miRE mire = NULL;
- const char * allpat = NULL;
+ char * allpat = NULL;
int notmatch = 0;
regex_t * preg = NULL;
int cflags = 0;
@@ -2287,7 +2287,7 @@ rpmdbMatchIterator rpmdbInitIterator(rpmdb db, rpm_tag_t rpmtag,
DBT * data;
dbiIndexSet set = NULL;
dbiIndex dbi;
- const void * mi_keyp = NULL;
+ void * mi_keyp = NULL;
int isLabel = 0;
if (db == NULL)