- int intret = call1(proc, req, rep, to);
- unmarshall u(rep, true);
- if (intret < 0) return intret;
- u >> r;
- if (u.okdone() != true) {
- LOG("rpcc::call_m: failed to unmarshall the reply. You are probably " <<
- "calling RPC 0x" << hex << proc << " with the wrong return type.");
- VERIFY(0);
- return rpc_protocol::unmarshal_reply_failure;
- }
+ int intret = call_marshalled(proc, to, rep, req);
+ if (intret >= 0)
+ VERIFY(unmarshall(rep, true, r).okdone()); // guaranteed by static type checking