X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-jsonrpc.c;h=616ff2e0491e0bfcd10936be022e0454c87e3617;hb=142cdb018d0f0941b2c03d4be7f9a06a0aeb5122;hp=f431f8685a48a06c442a64b14304c23f1caf0c03;hpb=c1ce8fbffb04e006a1698139132439ef0d7e57b2;p=sliver-openvswitch.git diff --git a/tests/test-jsonrpc.c b/tests/test-jsonrpc.c index f431f8685..616ff2e04 100644 --- a/tests/test-jsonrpc.c +++ b/tests/test-jsonrpc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010, 2011, 2012 Nicira Networks. + * Copyright (c) 2009, 2010, 2011, 2012, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ parse_options(int argc, char *argv[]) OPT_BOOTSTRAP_CA_CERT = UCHAR_MAX + 1, DAEMON_OPTION_ENUMS }; - static struct option long_options[] = { + static const struct option long_options[] = { {"verbose", optional_argument, NULL, 'v'}, {"help", no_argument, NULL, 'h'}, DAEMON_LONG_OPTIONS, @@ -176,7 +176,7 @@ do_listen(int argc OVS_UNUSED, char *argv[]) bool done; int error; - error = jsonrpc_pstream_open(argv[1], &pstream); + error = jsonrpc_pstream_open(argv[1], &pstream, DSCP_DEFAULT); if (error) { ovs_fatal(error, "could not listen on \"%s\"", argv[1]); } @@ -269,7 +269,8 @@ do_request(int argc OVS_UNUSED, char *argv[]) ovs_fatal(0, "not a valid JSON-RPC request: %s", string); } - error = stream_open_block(jsonrpc_stream_open(argv[1], &stream), &stream); + error = stream_open_block(jsonrpc_stream_open(argv[1], &stream, + DSCP_DEFAULT), &stream); if (error) { ovs_fatal(error, "could not open \"%s\"", argv[1]); } @@ -308,7 +309,8 @@ do_notify(int argc OVS_UNUSED, char *argv[]) ovs_fatal(0, "not a JSON RPC-valid notification: %s", string); } - error = stream_open_block(jsonrpc_stream_open(argv[1], &stream), &stream); + error = stream_open_block(jsonrpc_stream_open(argv[1], &stream, + DSCP_DEFAULT), &stream); if (error) { ovs_fatal(error, "could not open \"%s\"", argv[1]); }