index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/package.h | 15 |
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h index 105a80aa..a555a7e9 100644 --- a/lib/libalpm/package.h +++ b/lib/libalpm/package.h @@ -67,12 +67,19 @@ typedef struct __pmpkg_t { unsigned char infolevel; } pmpkg_t; -#define FREEPKG(p) do { if(p) { pkg_free(p); p = NULL; } } while(0) +#define FREEPKG(p) \ +do { \ + if(p) { \ + pkg_free(p); \ + p = NULL; \ + } \ +} while(0) -#define FREELISTPKGS(p) do {\ +#define FREELISTPKGS(p) \ +do { \ if(p) { \ - PMList *i;\ - for(i = p; i; i = i->next) {\ + PMList *i; \ + for(i = p; i; i = i->next) { \ FREEPKG(i->data); \ }\ FREELIST(p);\ |