summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlaus Kämpf <kkaempf@suse.de>2011-03-16 12:50:20 +0100
committerKlaus Kämpf <kkaempf@suse.de>2011-03-16 12:50:20 +0100
commit4c763832ecb9652b92c942bdd9657b0e88ba902f (patch)
tree2044f698fbbc8c1cdbbb3877bb850adc2212c61b
parent8e452058c075b91cd9dc50eb73422e9b0f3bbc4d (diff)
downloadwsmancli-4c763832ecb9652b92c942bdd9657b0e88ba902f.tar.gz
wsmancli-4c763832ecb9652b92c942bdd9657b0e88ba902f.tar.xz
wsmancli-4c763832ecb9652b92c942bdd9657b0e88ba902f.zip
Fix integral parameter handling on ppc and s390x
From: Kamil Dudka <kdudka@redhat.com> wsman client doesn't work correctly on some architectures (ppc, s390x). It ignores the given port number as well as all integral parameters. The integer parsing function does not return the value but passes it by writing through a pointer, assuming long int target.
-rw-r--r--src/wsman.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wsman.c b/src/wsman.c
index 67ad2b7..51bafb6 100644
--- a/src/wsman.c
+++ b/src/wsman.c
@@ -57,7 +57,7 @@
extern char *getpass (const char *__prompt);
#endif
-static int server_port = 0;
+static long int server_port = 0;
static char *cainfo = NULL;
static char *cert = NULL;
static char *sslkey = NULL;
@@ -71,15 +71,15 @@ static char *authentication_method = NULL;
static char noverify_peer = 0;
static char noverify_host = 0;
-static int transport_timeout = 0;
+static long int transport_timeout = 0;
static char *proxy = NULL;
static char *proxy_upwd = NULL;
-static int debug_level = -1;
+static long int debug_level = -1;
static char *encoding = NULL;
static char *test_case = NULL;
-static int enum_max_elements = 0;
+static long int enum_max_elements = 0;
char enum_optimize = 0;
char enum_estimate = 0;
char dump_request = 0;
@@ -92,8 +92,8 @@ static char *enum_context = NULL;
static char *event_delivery_mode = NULL;
static char *event_delivery_sec_mode = NULL;
static char *event_delivery_uri = NULL;
-static int event_subscription_expire = 0;
-static int event_heartbeat = 0;
+static long int event_subscription_expire = 0;
+static long int event_heartbeat = 0;
static int event_sendbookmark =0;
static char *event_subscription_id = NULL;
static char *event_reference_properties = NULL;