index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-04-26 19:57:09 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-04-27 14:29:23 -0400 |
commit | db9e10f14215ab6453cd663a62cae5bdfac3d61b (patch) | |
tree | d94d3af1f79988549f50e6ea52e25da94d3f8125 /lib/libalpm/trans.h | |
parent | 75efcbbff6a9e1db543f04693f70780413369a85 (diff) |
-rw-r--r-- | lib/libalpm/trans.h | 9 |
diff --git a/lib/libalpm/trans.h b/lib/libalpm/trans.h index 34a060ad..11f15f85 100644 --- a/lib/libalpm/trans.h +++ b/lib/libalpm/trans.h @@ -50,13 +50,6 @@ struct __pmtrans_t { alpm_trans_cb_progress cb_progress; }; -#define FREETRANS(p) \ -do { \ - if(p) { \ - _alpm_trans_free(p); \ - p = NULL; \ - } \ -} while (0) #define EVENT(t, e, d1, d2) \ do { \ if((t) && (t)->cb_event) { \ @@ -77,7 +70,7 @@ do { \ } while(0) pmtrans_t *_alpm_trans_new(void); -void _alpm_trans_free(void *data); +void _alpm_trans_free(pmtrans_t *trans); int _alpm_trans_init(pmtrans_t *trans, pmtranstype_t type, pmtransflag_t flags, alpm_trans_cb_event event, alpm_trans_cb_conv conv, alpm_trans_cb_progress progress); |