summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-04-24 21:36:30 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-04-24 21:36:30 +0000
commitbeda47fd22d204ba7f79ccab5251ed13c3faf82d (patch)
treef583cd91f88526561eda7373bc0a8b1e7cb02349 /lib/libalpm/package.h
parenta9540e2c7629bd7ecd7e98a562f77e33a289dba9 (diff)
downloadpacman-beda47fd22d204ba7f79ccab5251ed13c3faf82d.tar.xz
code cleanup
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);\