Const-correctness: rpmdsRpmlib() doesn't (and must not) modify tblp
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 5 Nov 2010 08:18:41 +0000 (10:18 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 5 Nov 2010 08:18:41 +0000 (10:18 +0200)
lib/rpmds.c
lib/rpmds.h

index e1a3df7..b86b5da 100644 (file)
@@ -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;
index 5a91ba1..75c1541 100644 (file)
@@ -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
 }