diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-24 11:32:14 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-25 14:13:03 -0400 |
commit | a0299cd240292d93b0f465bf1845a5e54889f61b (patch) | |
tree | 9844bf5af0cb022246880239c6346ac03153fd9a /src/test/test_controller.c | |
parent | 3ed7ceeb856b3c1fbe5edf3b8c6ffe3f5e875622 (diff) | |
download | tor-a0299cd240292d93b0f465bf1845a5e54889f61b.tar.gz tor-a0299cd240292d93b0f465bf1845a5e54889f61b.zip |
In control command api, rename "object" to "cmddata"
This makes it match control-spec.txt.
Diffstat (limited to 'src/test/test_controller.c')
-rw-r--r-- | src/test/test_controller.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_controller.c b/src/test/test_controller.c index fd4f26f086..c130248592 100644 --- a/src/test/test_controller.c +++ b/src/test/test_controller.c @@ -56,9 +56,9 @@ control_cmd_dump_args(const control_cmd_args_t *result) } SMARTLIST_FOREACH_END(s); } buf_add_string(buf, "]"); - if (result->object) { + if (result->cmddata) { buf_add_string(buf, ", obj="); - buf_add_string(buf, escaped(result->object)); + buf_add_string(buf, escaped(result->cmddata)); } if (result->kwargs) { buf_add_string(buf, ", { "); @@ -160,7 +160,7 @@ static const parser_testcase_t no_args_one_obj_tests[] = { }; static const control_cmd_syntax_t no_args_one_obj_syntax = { .min_args=0, .max_args=0, - .want_object=true, + .want_cmddata=true, }; static const parse_test_params_t parse_no_args_one_obj_params = TESTPARAMS( no_args_one_obj_syntax, no_args_one_obj_tests ); |