From: Klaus Kämpf Date: Mon, 22 Jun 2009 14:21:10 +0000 (+0200) Subject: evr doesn't change the Pool: more constness X-Git-Tag: BASE-SuSE-Code-12_1-Branch~230 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b898455ab428a1d5df7b17f343c7c4a6553c505;p=platform%2Fupstream%2Flibsolv.git evr doesn't change the Pool: more constness --- 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 }