summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-15 21:14:44 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-15 21:14:44 +0200
commitf013449361e92ea2a6ffaa1bf3e9d1939f18d8b4 (patch)
tree633838a8c9054aca13578ae6f1819d2c0b576f6e
parentaa61b715e6639d6900ca66facb62d5f099dd11d4 (diff)
downloadlibrpm-tizen-f013449361e92ea2a6ffaa1bf3e9d1939f18d8b4.tar.gz
librpm-tizen-f013449361e92ea2a6ffaa1bf3e9d1939f18d8b4.tar.bz2
librpm-tizen-f013449361e92ea2a6ffaa1bf3e9d1939f18d8b4.zip
Couple of bogus const removals from rpmgi and rpmds structs
- in both cases the data is already directly inaccessible from outside, no further protection necessary
-rw-r--r--lib/rpmds.c2
-rw-r--r--lib/rpmgi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rpmds.c b/lib/rpmds.c
index b56d7aa46..6337b2154 100644
--- a/lib/rpmds.c
+++ b/lib/rpmds.c
@@ -27,7 +27,7 @@ int _rpmds_unspecified_epoch_noise = 0;
*/
struct rpmds_s {
const char * Type; /*!< Tag name. */
- const char * DNEVR; /*!< Formatted dependency string. */
+ char * DNEVR; /*!< Formatted dependency string. */
Header h; /*!< Header for dependency set (or NULL) */
const char ** N; /*!< Name. */
const char ** EVR; /*!< Epoch-Version-Release. */
diff --git a/lib/rpmgi.c b/lib/rpmgi.c
index c590188bd..f0e0f17a3 100644
--- a/lib/rpmgi.c
+++ b/lib/rpmgi.c
@@ -34,7 +34,7 @@ struct rpmgi_s {
int active; /*!< Iterator is active? */
int i; /*!< Element index. */
int errors;
- const char * hdrPath; /*!< Path to current iterator header. */
+ char * hdrPath; /*!< Path to current iterator header. */
Header h; /*!< Current iterator header. */
rpmtsi tsi;