Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-03-08 18:07:58 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-03-08 18:07:58 +0000
commit4f42a0accb04936acb6eeb640e5bc09a556eac57 (patch)
treebaf6422b479604fa12da47e8243edfcbfdb691a1 /lib/libalpm/db.c
parent230d9d7ae3c3ebc64e922611567841b6fe692f3f (diff)
all _alpm_XXX_cmp functions are now public
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 6b1ceffe..01265917 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -77,4 +77,9 @@ void _alpm_db_free(void *data)
free(db);
}
+int _alpm_db_cmp(const void *db1, const void *db2)
+{
+ return(strcmp(((pmdb_t *)db1)->treename, ((pmdb_t *)db2)->treename));
+}
+
/* vim: set ts=2 sw=2 noet: */