summaryrefslogtreecommitdiff
path: root/lib/libalpm/group.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-22 20:49:33 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-02-22 20:49:33 +0000
commit16ff7cfa8ef2d50c97d79357c2b2c1fdc2bc241b (patch)
treed259cc5a0de95d478c3a21df549dbd90880147cd /lib/libalpm/group.h
parent78ffd98701b64bff74fc530db91ffc7e8768989a (diff)
downloadpacman-16ff7cfa8ef2d50c97d79357c2b2c1fdc2bc241b.tar.xz
improved _alpm_list_free handling
Diffstat (limited to 'lib/libalpm/group.h')
-rw-r--r--lib/libalpm/group.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libalpm/group.h b/lib/libalpm/group.h
index 6fa3a24c..e36d3603 100644
--- a/lib/libalpm/group.h
+++ b/lib/libalpm/group.h
@@ -33,16 +33,10 @@ typedef struct __pmgrp_t {
#define FREEGRP(p) do { if(p) { _alpm_grp_free(p); p = NULL; } } while(0)
-#define FREELISTGRPS(p) do { \
- PMList *i; \
- for(i = p; i; i = i->next) { \
- FREEGRP(i->data); \
- } \
- FREELIST(p); \
-} while(0)
+#define FREELISTGRPS(p) _FREELIST(p, _alpm_grp_free)
pmgrp_t *_alpm_grp_new(void);
-void _alpm_grp_free(pmgrp_t *grp);
+void _alpm_grp_free(void *data);
int _alpm_grp_cmp(const void *g1, const void *g2);
#endif /* _ALPM_GROUP_H */