From: Stefan Schubert Date: Fri, 27 Oct 2006 12:39:15 +0000 (+0000) Subject: removed compiler warnings X-Git-Tag: BASE-SuSE-SLE-10-SP2-Branch~132 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96a55585015dc52f23a36c8d0a769e9c478f0186;p=platform%2Fupstream%2Flibzypp.git removed compiler warnings --- diff --git a/zypp/solver/detail/Resolver.cc b/zypp/solver/detail/Resolver.cc index d980c41..77340ff 100644 --- a/zypp/solver/detail/Resolver.cc +++ b/zypp/solver/detail/Resolver.cc @@ -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 & diff --git a/zypp/solver/detail/Resolver.h b/zypp/solver/detail/Resolver.h index 58f5fd9..66c8c64 100644 --- a/zypp/solver/detail/Resolver.h +++ b/zypp/solver/detail/Resolver.h @@ -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;