From aecd0740cfa8f547b0e65e0ab7535c35a2b80beb Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 8 Jul 2011 14:44:58 -0500 Subject: Tidy up testdb to match coding styles Signed-off-by: Dan McGee --- src/util/testdb.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/util') 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 ] : check the local database\n", BASENAME); -- cgit v1.2.3-2-g168b