summaryrefslogtreecommitdiff
path: root/upb/upb.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-01-15 14:48:09 -0800
committerJoshua Haberman <jhaberman@gmail.com>2019-01-15 14:48:09 -0800
commit2c26f60dbbc49bca6233cc20a15ff4b32454c6e8 (patch)
treeed3457ac04b937d8738f481e698cf001578880a9 /upb/upb.c
parent9349b703a33c76b0d50a15c6d372e8948e045749 (diff)
Added some comments and reversed upb_arena_cleanup() args.
Diffstat (limited to 'upb/upb.c')
-rw-r--r--upb/upb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/upb.c b/upb/upb.c
index f56f6c4..d8d2723 100644
--- a/upb/upb.c
+++ b/upb/upb.c
@@ -231,7 +231,7 @@ void upb_arena_free(upb_arena *a) {
}
}
-bool upb_arena_addcleanup(upb_arena *a, upb_cleanup_func *func, void *ud) {
+bool upb_arena_addcleanup(upb_arena *a, void *ud, upb_cleanup_func *func) {
cleanup_ent *ent = upb_malloc(&a->alloc, sizeof(cleanup_ent));
if (!ent) {
return false; /* Out of memory. */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback