summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2010-05-03 17:33:00 +0200
committerMichael Schroeder <mls@suse.de>2010-05-03 17:33:00 +0200
commitb94940f43d45506a3967376750ae4da956f81652 (patch)
tree30c195469e1f3a542e050979624c5fbcd19031fd /src
parentb4b4303bd4db7cf21c9b82f5a71d1977c3854063 (diff)
downloadlibsolv-b94940f43d45506a3967376750ae4da956f81652.tar.gz
libsolv-b94940f43d45506a3967376750ae4da956f81652.tar.bz2
libsolv-b94940f43d45506a3967376750ae4da956f81652.zip
- code cleanup
Diffstat (limited to 'src')
-rw-r--r--src/rules.c5
-rw-r--r--src/rules.h2
-rw-r--r--src/solver.c3
3 files changed, 5 insertions, 5 deletions
diff --git a/src/rules.c b/src/rules.c
index c92353b..7e17af4 100644
--- a/src/rules.c
+++ b/src/rules.c
@@ -1974,9 +1974,8 @@ addchoicerules(Solver *solv)
/* called when a choice rule is disabled by analyze_unsolvable. We also
* have to disable all other choice rules so that the best packages get
* picked */
-
void
-disablechoicerules(Solver *solv, Rule *r)
+solver_disablechoicerules(Solver *solv, Rule *r)
{
Id rid, p, *pp;
Pool *pool = solv->pool;
@@ -2005,7 +2004,7 @@ disablechoicerules(Solver *solv, Rule *r)
}
}
-void solver_createcleandepsmap(Solver *solv)
+static void solver_createcleandepsmap(Solver *solv)
{
Pool *pool = solv->pool;
Repo *installed = solv->installed;
diff --git a/src/rules.h b/src/rules.h
index 7ac1c9d..b70b640 100644
--- a/src/rules.h
+++ b/src/rules.h
@@ -122,6 +122,8 @@ void solver_reenablepolicyrules(struct _Solver *solv, int jobidx);
int solver_allruleinfos(struct _Solver *solv, Id rid, Queue *rq);
SolverRuleinfo solver_ruleinfo(struct _Solver *solv, Id rid, Id *fromp, Id *top, Id *depp);
+/* misc functions */
+void solver_disablechoicerules(struct _Solver *solv, Rule *r);
#ifdef __cplusplus
}
diff --git a/src/solver.c b/src/solver.c
index e4effa1..d6c6938 100644
--- a/src/solver.c
+++ b/src/solver.c
@@ -975,7 +975,6 @@ analyze_unsolvable(Solver *solv, Rule *cr, int disablerules)
if (lastweak)
{
Id v;
- extern void disablechoicerules(Solver *solv, Rule *r);
/* disable last weak rule */
solv->problems.count = oldproblemcount;
solv->learnt_pool.count = oldlearntpoolcount;
@@ -986,7 +985,7 @@ analyze_unsolvable(Solver *solv, Rule *cr, int disablerules)
POOL_DEBUG(SAT_DEBUG_UNSOLVABLE, "disabling ");
solver_printruleclass(solv, SAT_DEBUG_UNSOLVABLE, solv->rules + lastweak);
if (lastweak >= solv->choicerules && lastweak < solv->choicerules_end)
- disablechoicerules(solv, solv->rules + lastweak);
+ solver_disablechoicerules(solv, solv->rules + lastweak);
solver_disableproblem(solv, v);
if (v < 0)
solver_reenablepolicyrules(solv, -(v + 1));