From be39f49a5461d5804e4391266dfea6dd076691f4 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Fri, 17 Feb 2006 22:35:26 +0000 Subject: prepend library function names with _alpm (helped with the patch from VMiklos ) added log and event callbacks to sync_commit internal transactions --- lib/libalpm/versioncmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/versioncmp.c') 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; -- cgit v1.2.3-54-g00ecf