Couple of bogus const removals from rpmgi and rpmds structs
authorPanu Matilainen <pmatilai@redhat.com>
Sat, 15 Dec 2007 19:14:44 +0000 (21:14 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Sat, 15 Dec 2007 19:14:44 +0000 (21:14 +0200)
- in both cases the data is already directly inaccessible from outside,
  no further protection necessary

lib/rpmds.c
lib/rpmgi.c

index b56d7aa..6337b21 100644 (file)
@@ -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. */
index c590188..f0e0f17 100644 (file)
@@ -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;