1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

Tidy up testdb to match coding styles

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-07-08 14:44:58 -05:00
parent a3def7ac87
commit aecd0740cf

View File

@ -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);