diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-03-08 18:07:58 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-03-08 18:07:58 +0000 |
commit | 4f42a0accb04936acb6eeb640e5bc09a556eac57 (patch) | |
tree | baf6422b479604fa12da47e8243edfcbfdb691a1 /lib/libalpm/db.c | |
parent | 230d9d7ae3c3ebc64e922611567841b6fe692f3f (diff) | |
download | pacman-4f42a0accb04936acb6eeb640e5bc09a556eac57.tar.xz |
all _alpm_XXX_cmp functions are now public
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r-- | lib/libalpm/db.c | 5 |
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: */ |