diff options
author | Sam Kottler <shk@redhat.com> | 2013-06-30 22:13:29 -0400 |
---|---|---|
committer | Sam Kottler <shk@redhat.com> | 2013-06-30 22:13:29 -0400 |
commit | 8bb5b7681e07e7b442ec8d3c119ffb22a22b2c64 (patch) | |
tree | 9400232eeeb6a9bd867a5889e43390aef0437443 /examples/create_resource.c | |
parent | 52a0feb60edec8ff9489321298db989b77e89007 (diff) | |
download | wsmancli-8bb5b7681e07e7b442ec8d3c119ffb22a22b2c64.tar.gz wsmancli-8bb5b7681e07e7b442ec8d3c119ffb22a22b2c64.tar.xz wsmancli-8bb5b7681e07e7b442ec8d3c119ffb22a22b2c64.zip |
Remove unused code that is duplicated all over the place
Diffstat (limited to 'examples/create_resource.c')
-rw-r--r-- | examples/create_resource.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/create_resource.c b/examples/create_resource.c index b66f289..d44bc03 100644 --- a/examples/create_resource.c +++ b/examples/create_resource.c @@ -88,7 +88,6 @@ int main(int argc, char** argv) WsManClient *cl; WsXmlDocH doc; client_opt_t *options; - char retval = 0; u_error_t *error = NULL; @@ -100,11 +99,10 @@ int main(int argc, char** argv) { NULL } }; - u_option_context_t *opt_ctx; + u_option_context_t *opt_ctx; opt_ctx = u_option_context_new(""); u_option_context_set_ignore_unknown_options(opt_ctx, FALSE); u_option_context_add_main_entries(opt_ctx, opt, "Create Resource"); - retval = u_option_context_parse(opt_ctx, &argc, &argv, &error); u_option_context_free(opt_ctx); @@ -133,7 +131,7 @@ int main(int argc, char** argv) uri->path, uri->scheme, uri->user, - uri->pwd); + uri->pwd); wsmc_transport_init(cl, NULL); options = wsmc_options_init(); |