X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-jsonrpc.c;h=d02a65f15238eabda721d2330dd026c1c18ebff6;hb=79c9f2ee7883b52860c76c3730725f5731402874;hp=06b1cf4750dc6c71a5ce6f9b688cf0098b0ec0b1;hpb=c69ee87c10818267f991236201150b1fa51ae519;p=openvswitch diff --git a/tests/test-jsonrpc.c b/tests/test-jsonrpc.c index 06b1cf47..d02a65f1 100644 --- a/tests/test-jsonrpc.c +++ b/tests/test-jsonrpc.c @@ -185,7 +185,7 @@ do_listen(int argc OVS_UNUSED, char *argv[]) die_if_already_running(); - error = pstream_open(argv[1], &pstream); + error = jsonrpc_pstream_open(argv[1], &pstream); if (error) { ovs_fatal(error, "could not listen on \"%s\"", argv[1]); } @@ -274,7 +274,7 @@ do_request(int argc OVS_UNUSED, char *argv[]) ovs_fatal(0, "not a valid JSON-RPC request: %s", string); } - error = stream_open_block(argv[1], &stream); + error = stream_open_block(jsonrpc_stream_open(argv[1], &stream), &stream); if (error) { ovs_fatal(error, "could not open \"%s\"", argv[1]); } @@ -313,7 +313,7 @@ do_notify(int argc OVS_UNUSED, char *argv[]) ovs_fatal(0, "not a JSON RPC-valid notification: %s", string); } - error = stream_open_block(argv[1], &stream); + error = stream_open_block(jsonrpc_stream_open(argv[1], &stream), &stream); if (error) { ovs_fatal(error, "could not open \"%s\"", argv[1]); }