switch back to capn_root
capn_root now returns a ptr that can be used with capn_getp/setp. This replaces capn_new_root and capn_get_root.
This commit is contained in:
parent
69b838a092
commit
c85722874d
5 changed files with 20 additions and 31 deletions
|
|
@ -617,7 +617,7 @@ int main() {
|
|||
return -1;
|
||||
}
|
||||
|
||||
root.p = capn_get_root(&capn);
|
||||
root.p = capn_getp(capn_root(&capn), 0);
|
||||
read_CodeGeneratorRequest(&req, root);
|
||||
|
||||
for (i = 0; i < req.nodes.p.len; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue