From 3cf8a333d04cd8b55edfe63bd8f4dd322a88a4d0 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 26 Apr 2007 20:15:51 -0400 Subject: Remove FREEGRP macro and correctly type _alpm_grp_free Signed-off-by: Dan McGee --- lib/libalpm/group.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/libalpm/group.h') diff --git a/lib/libalpm/group.h b/lib/libalpm/group.h index c5366e64..7f679b55 100644 --- a/lib/libalpm/group.h +++ b/lib/libalpm/group.h @@ -31,11 +31,8 @@ struct __pmgrp_t { alpm_list_t *packages; /* List of strings */ }; -#define FREEGRP(p) do { if(p) { _alpm_grp_free(p); p = NULL; } } while(0) -#define FREELISTGRPS(p) _FREELIST(p, _alpm_grp_free) - pmgrp_t *_alpm_grp_new(void); -void _alpm_grp_free(void *data); +void _alpm_grp_free(pmgrp_t *grp); int _alpm_grp_cmp(const void *g1, const void *g2); #endif /* _ALPM_GROUP_H */ -- cgit v1.2.3-70-g09d2