index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2006-02-17 22:35:26 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-02-17 22:35:26 +0000 |
commit | be39f49a5461d5804e4391266dfea6dd076691f4 (patch) | |
tree | 911a7f550895d9fdda7b4846d6775699549b2bf4 /lib/libalpm/versioncmp.c | |
parent | 5e4c3661c6066623bbfa34bacccfafda5be21315 (diff) |
-rw-r--r-- | lib/libalpm/versioncmp.c | 4 |
diff --git a/lib/libalpm/versioncmp.c b/lib/libalpm/versioncmp.c index a7dae40b..71b1f4ad 100644 --- a/lib/libalpm/versioncmp.c +++ b/lib/libalpm/versioncmp.c @@ -141,7 +141,7 @@ static int strverscmp (s1, s2) #endif /* this function was taken from rpm 4.0.4 and rewritten */ -int versioncmp(const char *a, const char *b) { +int _alpm_versioncmp(const char *a, const char *b) { char *str1, *ostr1, *str2, *ostr2; char *one, *two; char *rel1 = NULL, *rel2 = NULL; @@ -248,7 +248,7 @@ int versioncmp(const char *a, const char *b) { if((!*one) && (!*two)) { /* compare release numbers */ if(rel1 && rel2) { - rv = versioncmp(rel1, rel2); + rv = _alpm_versioncmp(rel1, rel2); free(ostr1); free(ostr2); return rv; |