diff options
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: */ |