aboutsummaryrefslogtreecommitdiffstats
path: root/query.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-21 12:28:34 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-21 12:28:34 +0200
commit783e9b76de9a8ec16e8229d7c476b16ba8011554 (patch)
treeee27ef686f8aefa4dc36a3d0999e123f52ed0fb2 /query.c
parent51bbec0b0e280be629f7b1086160b7730ebfdb74 (diff)
parent92998915be47eab17e548af5c3dd43fa4eab9683 (diff)
Merge trunk.
Diffstat (limited to 'query.c')
-rw-r--r--query.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/query.c b/query.c
index 6f9eb77f..e8f69572 100644
--- a/query.c
+++ b/query.c
@@ -29,7 +29,8 @@
static void query_display( irc_t *irc, query_t *q );
static query_t *query_default( irc_t *irc );
-query_t *query_add( irc_t *irc, struct im_connection *ic, char *question, void *yes, void *no, void *data )
+query_t *query_add( irc_t *irc, struct im_connection *ic, char *question,
+ query_callback yes, query_callback no, void *data )
{
query_t *q = g_new0( query_t, 1 );
@@ -143,7 +144,7 @@ void query_answer( irc_t *irc, query_t *q, int ans )
imcb_log( q->ic, "Accepted: %s", q->question );
else
irc_usermsg( irc, "Accepted: %s", q->question );
- q->yes( NULL, q->data );
+ q->yes( q->data );
}
else
{
@@ -151,7 +152,7 @@ void query_answer( irc_t *irc, query_t *q, int ans )
imcb_log( q->ic, "Rejected: %s", q->question );
else
irc_usermsg( irc, "Rejected: %s", q->question );
- q->no( NULL, q->data );
+ q->no( q->data );
}
q->data = NULL;