From: Panu Matilainen Date: Sat, 15 Dec 2007 19:14:44 +0000 (+0200) Subject: Couple of bogus const removals from rpmgi and rpmds structs X-Git-Tag: tznext/4.11.0.1.tizen20130304~4810 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f013449361e92ea2a6ffaa1bf3e9d1939f18d8b4;p=tools%2Flibrpm-tizen.git 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 --- diff --git a/lib/rpmds.c b/lib/rpmds.c index b56d7aa..6337b21 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 c590188..f0e0f17 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;