From 53e3ca23ea34dbdf44fab2da46e3ac1b64d32190 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 5 Nov 2010 10:18:41 +0200 Subject: [PATCH] Const-correctness: rpmdsRpmlib() doesn't (and must not) modify tblp --- lib/rpmds.c | 2 +- lib/rpmds.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.7.4