summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/package.h')
-rw-r--r--lib/libalpm/package.h15
1 files changed, 11 insertions, 4 deletions
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);\