From: Panu Matilainen Date: Fri, 5 Nov 2010 08:18:41 +0000 (+0200) Subject: Const-correctness: rpmdsRpmlib() doesn't (and must not) modify tblp X-Git-Tag: rpm-4.9.0-beta1~99 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53e3ca23ea34dbdf44fab2da46e3ac1b64d32190;p=platform%2Fupstream%2Frpm.git Const-correctness: rpmdsRpmlib() doesn't (and must not) modify tblp --- diff --git a/lib/rpmds.c b/lib/rpmds.c index e1a3df7..b86b5da 100644 --- a/lib/rpmds.c +++ b/lib/rpmds.c @@ -897,7 +897,7 @@ static const struct rpmlibProvides_s rpmlibProvides[] = { }; -int rpmdsRpmlib(rpmds * dsp, void * tblp) +int rpmdsRpmlib(rpmds * dsp, const void * tblp) { const struct rpmlibProvides_s * rltblp = tblp; const struct rpmlibProvides_s * rlp; diff --git a/lib/rpmds.h b/lib/rpmds.h index 5a91ba1..75c1541 100644 --- a/lib/rpmds.h +++ b/lib/rpmds.h @@ -322,7 +322,7 @@ int rpmdsNVRMatchesDep(const Header h, const rpmds req, int nopromote); * @param tblp rpmlib provides table (NULL uses internal table) * @return 0 on success */ -int rpmdsRpmlib(rpmds * dsp, void * tblp); +int rpmdsRpmlib(rpmds * dsp, const void * tblp); #ifdef __cplusplus }