ref: refs/heads/master
commit 21e9bc53bf513b07fd004e3a7bec9a78545bf08e
Author: Klaus Kämpf
Date: Mon Jun 22 16:05:40 2009 +0200
More constness
---
src/policy.c | 4 ++--
src/policy.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/policy.c b/src/policy.c
index caddaf6..650da2b 100644
--- a/src/policy.c
+++ b/src/policy.c
@@ -228,7 +228,7 @@ prune_to_recommended(Solver *solv, Queue *plist)
}
void
-prune_to_best_arch(Pool *pool, Queue *plist)
+prune_to_best_arch(const Pool *pool, Queue *plist)
{
Id a, bestscore;
Solvable *s;
@@ -359,7 +359,7 @@ prune_to_best_version(Pool *pool, Queue *plist)
*/
void
-prune_best_arch_name_version(Solver *solv, Pool *pool, Queue *plist)
+prune_best_arch_name_version(const Solver *solv, Pool *pool, Queue *plist)
{
if (solv && solv->bestSolvableCb)
{ /* The application is responsible for */
diff --git a/src/policy.h b/src/policy.h
index 9e4de94..e52f4f8 100644
--- a/src/policy.h
+++ b/src/policy.h
@@ -18,9 +18,9 @@
/* This functions can be used for sorting solvables to a specific order like architecture, version. */
/* Solvables which does not fit to the system will be deleted from the list. */
-extern void prune_best_arch_name_version(Solver *solv, Pool *pool, Queue *plist);
+extern void prune_best_arch_name_version(const Solver *solv, Pool *pool, Queue *plist);
-extern void prune_to_best_arch(Pool *pool, Queue *plist);
+extern void prune_to_best_arch(const Pool *pool, Queue *plist);
extern void prune_to_best_version(Pool *pool, Queue *plist);
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org