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