aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-11-27 18:04:44 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-11-27 22:53:53 +0100
commit23837b2080706ed5870f16ad1cf64fe9557eb00d (patch)
treec8f4a58149217f72a22f265f784b546c63170138
parent4884f1d6fcea09ea8025b9c1d753469a8d32cffa (diff)
downloadlibssh-23837b2080706ed5870f16ad1cf64fe9557eb00d.tar.gz
libssh-23837b2080706ed5870f16ad1cf64fe9557eb00d.tar.xz
libssh-23837b2080706ed5870f16ad1cf64fe9557eb00d.zip
tests: Try to fix valgrind warnings.
-rw-r--r--tests/client/torture_forward.c4
-rw-r--r--tests/client/torture_sftp_read.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/client/torture_forward.c b/tests/client/torture_forward.c
index 1440552e..a2115c87 100644
--- a/tests/client/torture_forward.c
+++ b/tests/client/torture_forward.c
@@ -47,7 +47,7 @@ static void setup(void **state)
static void teardown(void **state)
{
- ssh_session session = *state;
+ ssh_session session = (ssh_session)*state;
assert_false(session == NULL);
@@ -59,7 +59,7 @@ static void teardown(void **state)
static void torture_ssh_forward(void **state)
{
- ssh_session session = *state;
+ ssh_session session = (ssh_session)*state;
#if 0
ssh_channel c;
#endif
diff --git a/tests/client/torture_sftp_read.c b/tests/client/torture_sftp_read.c
index 8efaafe9..1e40e2cf 100644
--- a/tests/client/torture_sftp_read.c
+++ b/tests/client/torture_sftp_read.c
@@ -29,7 +29,7 @@ static void setup(void **state) {
}
static void teardown(void **state) {
- struct torture_sftp *t = *state;
+ struct torture_sftp *t = (struct torture_sftp*) *state;
assert_false(t == NULL);
@@ -38,7 +38,7 @@ static void teardown(void **state) {
}
static void torture_sftp_read_blocking(void **state) {
- struct torture_sftp *t = *state;
+ struct torture_sftp *t = (struct torture_sftp*) *state;
char libssh_tmp_file[] = "/tmp/libssh_sftp_test_XXXXXX";
char buf[MAX_XFER_BUF_SIZE];
ssize_t bytesread;