From abfc897b50532e5ed64f7f5497f80ef56abd3b26 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 24 Feb 2011 00:09:27 -0800 Subject: Pass the upb_fielddef* to the endmsg callback. --- tests/test_stream.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test_stream.c b/tests/test_stream.c index 468d40c..8a136fd 100644 --- a/tests/test_stream.c +++ b/tests/test_stream.c @@ -53,7 +53,8 @@ static upb_flow_t startsubmsg(void *closure, struct _upb_fielddef *f, } } -static upb_flow_t endsubmsg(void *closure) { +static upb_flow_t endsubmsg(void *closure, struct _upb_fielddef *f) { + (void)f; test_data *d = closure; strappendf(d->str, "endsubmsg\n"); return UPB_CONTINUE; @@ -99,9 +100,9 @@ static void test_dispatcher() { data.should_delegate = false; upb_dispatch_startsubmsg(&d, NULL); upb_dispatch_value(&d, NULL, val); - upb_dispatch_endsubmsg(&d); - upb_dispatch_endsubmsg(&d); - upb_dispatch_endsubmsg(&d); + upb_dispatch_endsubmsg(&d, NULL); + upb_dispatch_endsubmsg(&d, NULL); + upb_dispatch_endsubmsg(&d, NULL); upb_dispatch_endmsg(&d); upb_string expected = UPB_STACK_STRING( -- cgit v1.2.3