- code cleanup
authorMichael Schroeder <mls@suse.de>
Mon, 3 May 2010 15:33:00 +0000 (17:33 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 3 May 2010 15:33:00 +0000 (17:33 +0200)
src/rules.c
src/rules.h
src/solver.c

index c92353b..7e17af4 100644 (file)
@@ -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;
index 7ac1c9d..b70b640 100644 (file)
@@ -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
 }
index e4effa1..d6c6938 100644 (file)
@@ -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));