summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-07-08 21:44:58 +0200
committerDan McGee <dan@archlinux.org>2011-07-28 22:01:39 +0200
commitaecd0740cfa8f547b0e65e0ab7535c35a2b80beb (patch)
treebeca97ae85336fcfba95e7e8482e0b84e3c37b6c /src
parenta3def7ac8745799e833b93f33954a02fd7efd83b (diff)
downloadpacman-aecd0740cfa8f547b0e65e0ab7535c35a2b80beb.tar.gz
pacman-aecd0740cfa8f547b0e65e0ab7535c35a2b80beb.tar.xz
Tidy up testdb to match coding styles
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/util/testdb.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/util/testdb.c b/src/util/testdb.c
index ee169df2..d85687a4 100644
--- a/src/util/testdb.c
+++ b/src/util/testdb.c
@@ -33,7 +33,8 @@
alpm_handle_t *handle = NULL;
-static void cleanup(int signum) {
+static void cleanup(int signum)
+{
if(handle && alpm_release(handle) == -1) {
fprintf(stderr, "error releasing alpm\n");
}
@@ -127,7 +128,8 @@ static int checkconflicts(alpm_list_t *pkglist)
return ret;
}
-static int check_localdb(void) {
+static int check_localdb(void)
+{
int ret = 0;
alpm_db_t *db = NULL;
alpm_list_t *pkglist;
@@ -144,7 +146,8 @@ static int check_localdb(void) {
return ret;
}
-static int check_syncdbs(alpm_list_t *dbnames) {
+static int check_syncdbs(alpm_list_t *dbnames)
+{
int ret = 0;
alpm_db_t *db = NULL;
alpm_list_t *i, *pkglist, *syncpkglist = NULL;
@@ -169,7 +172,8 @@ cleanup:
return ret;
}
-static void usage(void) {
+static void usage(void)
+{
fprintf(stderr, "usage:\n");
fprintf(stderr,
"\t%s [-b <pacman db>] : check the local database\n", BASENAME);