diff options
author | Klaus Kaempf <kkaempf@novell.com> | 2007-08-03 10:58:05 +0000 |
---|---|---|
committer | Klaus Kaempf <kkaempf@novell.com> | 2007-08-03 10:58:05 +0000 |
commit | a33ac2dcd62510b4bdefbf22e38c0a8691d06ca2 (patch) | |
tree | 7c1a0e6ac3fd1def34946b5da185ba635536e660 /src | |
parent | 0e709d8c21ae7ddd55943776abb7f1d926b0b8dc (diff) | |
download | wsmancli-a33ac2dcd62510b4bdefbf22e38c0a8691d06ca2.tar.gz wsmancli-a33ac2dcd62510b4bdefbf22e38c0a8691d06ca2.tar.xz wsmancli-a33ac2dcd62510b4bdefbf22e38c0a8691d06ca2.zip |
- include wsman-client-transport.h to get prototypes
- declare getpass() explicitly in Linux, since getpass(3) says
"This function is obsolete. Do not use it." and thus unistd.h
doesn't declare it by default.
- pass client pointer to wsmc_transport_fini()
Diffstat (limited to 'src')
-rw-r--r-- | src/wsman.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wsman.c b/src/wsman.c index 9d4bdff..cb1f8b2 100644 --- a/src/wsman.c +++ b/src/wsman.c @@ -49,13 +49,13 @@ #include <time.h> #include <wsman-client-api.h> +#include <wsman-client-transport.h> #include <wsman-debug.h> // #include "wsman-client-options.h" - - -static const char **wsman_argv = NULL; - +#if __linux__ +extern char *getpass (const char *__prompt); +#endif static int server_port = 0; static char *cainfo = NULL; @@ -836,7 +836,7 @@ int main(int argc, char **argv) } } wsmc_options_destroy(options); - wsmc_transport_fini(); + wsmc_transport_fini(cl); wsmc_release(cl); if (ini) { iniparser_freedict(ini); |