removed compiler warnings
authorStefan Schubert <schubi@suse.de>
Fri, 27 Oct 2006 12:39:15 +0000 (12:39 +0000)
committerStefan Schubert <schubi@suse.de>
Fri, 27 Oct 2006 12:39:15 +0000 (12:39 +0000)
zypp/solver/detail/Resolver.cc
zypp/solver/detail/Resolver.h

index d980c41..77340ff 100644 (file)
@@ -34,8 +34,6 @@
 #include "zypp/ZYppFactory.h"
 #include "zypp/SystemResObject.h"
 
-#define MAX_SECOND_RUNS 3
-#define TIMOUT_SECOND_RUN 30
 
 /////////////////////////////////////////////////////////////////////////
 namespace zypp
@@ -59,6 +57,9 @@ using namespace std;
 
 IMPL_PTR_TYPE(Resolver);
 
+static const unsigned MAX_SECOND_RUNS( 3 );
+static const unsigned TIMOUT_SECOND_RUN( 30 );
+
 //---------------------------------------------------------------------------
 
 std::ostream &
index 58f5fd9..66c8c64 100644 (file)
@@ -63,8 +63,8 @@ class Resolver : public base::ReferenceCounted, private base::NonCopyable {
   private:
     ResPool _pool;
 
-    int _timeout_seconds;
-    int _maxSolverPasses;
+    unsigned _timeout_seconds;
+    unsigned _maxSolverPasses;
     bool _verifying;
     bool _testing;