commit.c: rearrange xcalloc arguments