diff options
author | Dan McGee <dan@archlinux.org> | 2007-10-10 06:57:42 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-10-10 06:57:42 -0500 |
commit | 5adb8d4b5ac6928ba1a0736d96ca6c533d8cbc76 (patch) | |
tree | b2def0c5beff2f98ee4d5b302e46decd7ccd4726 /src/util | |
parent | 3c4e98f7b56c17590965be9dbae25fe1915b75cb (diff) |
util/testdb: fix up function naming
We shouldn't use the _alpm prefix (copy-paste issue, no big deal).
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/testdb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/testdb.c b/src/util/testdb.c index d59d0108..d8bc2481 100644 --- a/src/util/testdb.c +++ b/src/util/testdb.c @@ -31,15 +31,15 @@ #include <alpm.h> #include <alpm_list.h> -int _alpm_str_cmp(const void *s1, const void *s2) +int str_cmp(const void *s1, const void *s2) { return(strcmp(s1, s2)); } static void diffrqdby(const char *pkgname, alpm_list_t *oldrqdby, alpm_list_t *newrqdby) { - oldrqdby = alpm_list_msort(oldrqdby, alpm_list_count(oldrqdby), _alpm_str_cmp); - newrqdby = alpm_list_msort(newrqdby, alpm_list_count(newrqdby), _alpm_str_cmp); + oldrqdby = alpm_list_msort(oldrqdby, alpm_list_count(oldrqdby), str_cmp); + newrqdby = alpm_list_msort(newrqdby, alpm_list_count(newrqdby), str_cmp); alpm_list_t *i = oldrqdby; alpm_list_t *j = newrqdby; @@ -93,7 +93,7 @@ void output_cb(pmloglevel_t level, char *fmt, va_list args) } } -int db_test(char *dbpath) +static int db_test(char *dbpath) { struct dirent *ent; char path[PATH_MAX]; |