summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-08-15 20:53:39 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-08-15 20:53:39 -0700
commit7fa19a3f958c9a2ed7387cb373f0aa7bba707922 (patch)
tree8007ac449505db49a78da002bcdbd263e264bc12 /tests
parent71d82d06d17f0205ccf5bb72ea11d3fd3e9eb363 (diff)
Finish upb_context thread-safety.
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tests.c b/tests/tests.c
index 5df933c..e625f8a 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -222,9 +222,9 @@ static void test_get_f_uint32_t()
}
static void test_upb_context() {
- struct upb_context c;
- ASSERT(upb_context_init(&c));
- upb_context_unref(&c);
+ struct upb_context *c = upb_context_new();
+ ASSERT(c);
+ upb_context_unref(c);
}
int main()
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback