Improve byte_data const correctness

This commit is contained in:
topjohnwu
2023-06-03 03:16:03 -07:00
parent 57afae3425
commit 2a654e5d7f
17 changed files with 186 additions and 161 deletions

View File

@@ -137,8 +137,8 @@ static void pb_get_prop(prop_cb *prop_cb) {
PersistentProperties props{};
props.properties.funcs.decode = prop_decode;
props.properties.arg = prop_cb;
auto m = mmap_data(PERSIST_PROP);
pb_istream_t stream = pb_istream_from_buffer(m.buf, m.sz);
mmap_data m(PERSIST_PROP);
pb_istream_t stream = pb_istream_from_buffer(m.buf(), m.sz());
pb_decode(&stream, &PersistentProperties_msg, &props);
}