summaryrefslogtreecommitdiff
path: root/upb/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb/msg.c')
-rw-r--r--upb/msg.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/upb/msg.c b/upb/msg.c
index 31607b7..93d89a5 100644
--- a/upb/msg.c
+++ b/upb/msg.c
@@ -74,19 +74,16 @@ upb_msg *upb_msg_new(const upb_msglayout *l, upb_arena *a) {
return msg;
}
-upb_array *upb_array_new(upb_fieldtype_t type, upb_arena *a) {
- upb_alloc *alloc = upb_arena_alloc(a);
- upb_array *ret = upb_malloc(alloc, sizeof(upb_array));
+upb_array *upb_array_new(upb_arena *a) {
+ upb_array *ret = upb_arena_malloc(a, sizeof(upb_array));
if (!ret) {
return NULL;
}
- ret->type = type;
ret->data = NULL;
ret->len = 0;
ret->size = 0;
- ret->arena = a;
return ret;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback