X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/4b9798f44ae94deabf87dd534337b55259272950..eeab3e6cade87c1fe0a5f3d93522e12ccb9ec2ab:/rpc/rpctest.cc diff --git a/rpc/rpctest.cc b/rpc/rpctest.cc index 8aed748..c381745 100644 --- a/rpc/rpctest.cc +++ b/rpc/rpctest.cc @@ -81,7 +81,7 @@ void testmarshall() { marshall m; - req_header rh(1,2,3,4,5); + request_header rh{1,2,3,4,5}; m.pack_req_header(rh); VERIFY(m.size()==RPC_HEADER_SZ); int i = 12345; @@ -97,7 +97,7 @@ testmarshall() VERIFY(sz == (int)(RPC_HEADER_SZ+sizeof(i)+sizeof(l)+s.size()+sizeof(int))); unmarshall un(b,sz); - req_header rh1; + request_header rh1; un.unpack_req_header(&rh1); VERIFY(memcmp(&rh,&rh1,sizeof(rh))==0); int i1; @@ -203,7 +203,7 @@ simple_tests(rpcc *c) int xx = 0; intret = c->call_timeout(23, rpcc::to(3000), xx, 77); VERIFY(intret == 0 && xx == 78); - printf(" -- no suprious timeout .. ok\n"); + printf(" -- no spurious timeout .. ok\n"); // specify a timeout value to an RPC that should succeed (tcp) { @@ -211,7 +211,7 @@ simple_tests(rpcc *c) std::string rep; c->call_timeout(22, rpcc::to(3000), rep, arg, (std::string)"x"); VERIFY(rep.size() == 1001); - printf(" -- no suprious timeout .. ok\n"); + printf(" -- no spurious timeout .. ok\n"); } // huge RPC