diff options
author | Anas Nashif <nashif@intel.com> | 2007-03-29 18:29:31 +0000 |
---|---|---|
committer | Anas Nashif <nashif@intel.com> | 2007-03-29 18:29:31 +0000 |
commit | 3f5ed5e8b6a6e08b1d09be03bf8298bb1209cfa3 (patch) | |
tree | ccc2a5bc8141d7a8f212b3523d0741bb17a7b666 /examples/create_resource.c | |
parent | 23e187b9a2225f4bd64c7088c2504432a6f477a1 (diff) | |
download | wsmancli-3f5ed5e8b6a6e08b1d09be03bf8298bb1209cfa3.tar.gz wsmancli-3f5ed5e8b6a6e08b1d09be03bf8298bb1209cfa3.tar.xz wsmancli-3f5ed5e8b6a6e08b1d09be03bf8298bb1209cfa3.zip |
merge branch with fixes of bg #71
Diffstat (limited to 'examples/create_resource.c')
-rw-r--r-- | examples/create_resource.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/create_resource.c b/examples/create_resource.c index 41aa6a2..c7d1f72 100644 --- a/examples/create_resource.c +++ b/examples/create_resource.c @@ -91,7 +91,7 @@ int main(int argc, char** argv) { WsManClient *cl; WsXmlDocH doc; - actionOptions options; + actionOptions *options; char retval = 0; u_error_t *error = NULL; @@ -139,11 +139,11 @@ int main(int argc, char** argv) uri->scheme, uri->user, uri->pwd); - initialize_action_options(&options); + options = initialize_action_options(); - if (dump) wsman_set_action_option(&options,FLAG_DUMP_REQUEST ); - options.max_envelope_size = 51200; - options.timeout = 60000; + if (dump) wsman_set_action_option(options,FLAG_DUMP_REQUEST ); + options->max_envelope_size = 51200; + options->timeout = 60000; EXL_ExamplePolicy *d = u_malloc(sizeof(EXL_ExamplePolicy)); d->ElementName = u_strdup("name"); @@ -168,7 +168,7 @@ int main(int argc, char** argv) u_uri_free(uri); } - destroy_action_options(&options); + destroy_action_options(options); wsman_release_client(cl); return 0; } |