From 5adb8d4b5ac6928ba1a0736d96ca6c533d8cbc76 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 10 Oct 2007 06:57:42 -0500 Subject: util/testdb: fix up function naming We shouldn't use the _alpm prefix (copy-paste issue, no big deal). Signed-off-by: Dan McGee --- src/util/testdb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 #include -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]; -- cgit v1.2.3-70-g09d2