Mailinglist Archive: zypp-commit (171 mails)

< Previous Next >
[zypp-commit] <sat-solver> master : evr doesn't change the Pool: more constness
  • From: Klaus Kämpf <kkaempf@xxxxxxx>
  • Date: Mon, 22 Jun 2009 16:21:10 +0200
  • Message-id: <E1MIkOZ-0004LE-0I@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 8421f4b4b09eb8ce6e7c213cba21ab5089fc2909
Author: Klaus Kämpf <kkaempf@xxxxxxx>
Date: Mon Jun 22 16:21:10 2009 +0200

evr doesn't change the Pool: more constness
---
src/evr.c | 6 +++---
src/evr.h | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/evr.c b/src/evr.c
index b01adeb..4cd3e81 100644
--- a/src/evr.c
+++ b/src/evr.c
@@ -122,7 +122,7 @@ vercmp(const char *s1, const char *q1, const char *s2,
const char *q2)

/* edition (e:v-r) compare */
int
-evrcmp_str(Pool *pool, const char *evr1, const char *evr2, int mode)
+evrcmp_str(const Pool *pool, const char *evr1, const char *evr2, int mode)
{
int r;
const char *s1, *s2;
@@ -208,7 +208,7 @@ evrcmp_str(Pool *pool, const char *evr1, const char *evr2,
int mode)
}

int
-evrcmp(Pool *pool, Id evr1id, Id evr2id, int mode)
+evrcmp(const Pool *pool, Id evr1id, Id evr2id, int mode)
{
const char *evr1, *evr2;
if (evr1id == evr2id)
@@ -219,7 +219,7 @@ evrcmp(Pool *pool, Id evr1id, Id evr2id, int mode)
}

int
-evrmatch(Pool *pool, Id evrid, const char *epoch, const char *version, const
char *release)
+evrmatch(const Pool *pool, Id evrid, const char *epoch, const char *version,
const char *release)
{
const char *evr1;
const char *s1;
diff --git a/src/evr.h b/src/evr.h
index 62f6896..c45cf81 100644
--- a/src/evr.h
+++ b/src/evr.h
@@ -24,9 +24,9 @@ extern "C" {
#define EVRCMP_MATCH 2

extern int vercmp(const char *s1, const char *q1, const char *s2, const char
*q2);
-extern int evrcmp_str(Pool *pool, const char *evr1, const char *evr2, int
mode);
-extern int evrcmp(Pool *pool, Id evr1id, Id evr2id, int mode);
-extern int evrmatch(Pool *pool, Id evrid, const char *epoch, const char
*version, const char *release);
+extern int evrcmp_str(const Pool *pool, const char *evr1, const char *evr2,
int mode);
+extern int evrcmp(const Pool *pool, Id evr1id, Id evr2id, int mode);
+extern int evrmatch(const Pool *pool, Id evrid, const char *epoch, const char
*version, const char *release);

#ifdef __cplusplus
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages