*/
#define ENCODE_START(v, compat, bl) \
__u8 struct_v = v, struct_compat = compat; \
- ::encode(struct_v, bl); \
- ::encode(struct_compat, bl); \
- buffer::list::iterator struct_compat_it = bl.end(); \
+ ::encode(struct_v, (bl)); \
+ ::encode(struct_compat, (bl)); \
+ buffer::list::iterator struct_compat_it = (bl).end(); \
struct_compat_it.advance(-1); \
ceph_le32 struct_len; \
struct_len = 0; \
- ::encode(struct_len, bl); \
- buffer::list::iterator struct_len_it = bl.end(); \
+ ::encode(struct_len, (bl)); \
+ buffer::list::iterator struct_len_it = (bl).end(); \
struct_len_it.advance(-4); \
do {
*/
#define ENCODE_FINISH_NEW_COMPAT(bl, new_struct_compat) \
} while (false); \
- struct_len = bl.length() - struct_len_it.get_off() - sizeof(struct_len); \
+ struct_len = (bl).length() - struct_len_it.get_off() - sizeof(struct_len); \
struct_len_it.copy_in(4, (char *)&struct_len); \
if (new_struct_compat) { \
struct_compat = new_struct_compat; \