diff options
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) | |
download | pacman-be39f49a5461d5804e4391266dfea6dd076691f4.tar.xz |
prepend library function names with _alpm (helped with the patch from VMiklos <vmiklos@frugalware.org>)
added log and event callbacks to sync_commit internal transactions
Diffstat (limited to 'lib/libalpm/versioncmp.c')
-rw-r--r-- | lib/libalpm/versioncmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |