index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-07-08 14:44:58 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-07-28 15:01:39 -0500 |
commit | aecd0740cfa8f547b0e65e0ab7535c35a2b80beb (patch) | |
tree | beca97ae85336fcfba95e7e8482e0b84e3c37b6c /src | |
parent | a3def7ac8745799e833b93f33954a02fd7efd83b (diff) |
-rw-r--r-- | src/util/testdb.c | 12 |
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); |