From a33ac2dcd62510b4bdefbf22e38c0a8691d06ca2 Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Fri, 3 Aug 2007 10:58:05 +0000 Subject: - 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() --- src/wsman.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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 #include +#include #include // #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); -- cgit