From 5d61a44759dee774e67178097c2f8acffe12836f Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Mon, 10 Oct 2005 10:19:02 +0000 Subject: Fixed EVENT and QUESTION macros --- lib/libalpm/trans.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libalpm/trans.h b/lib/libalpm/trans.h index b9ca04a8..09791a94 100644 --- a/lib/libalpm/trans.h +++ b/lib/libalpm/trans.h @@ -50,14 +50,14 @@ do { \ } while (0) #define EVENT(t, e, d1, d2) \ do { \ - if((t) && (t)->cb_conv) { \ + if((t) && (t)->cb_event) { \ (t)->cb_event(e, d1, d2); \ } \ } while(0) -#define QUESTION(t, e, d1, d2, d3, r) \ +#define QUESTION(t, q, d1, d2, d3, r) \ do { \ - if((t) && (t)->cb_event) { \ - (t)->cb_conv(e, d1, d2, d3, r); \ + if((t) && (t)->cb_conv) { \ + (t)->cb_conv(q, d1, d2, d3, r); \ } \ } while(0) -- cgit v1.2.3-70-g09d2