1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-05-28 17:41:28 +03:00

tests: Try to fix valgrind warnings.

This commit is contained in:
Andreas Schneider 2013-11-27 18:04:44 +01:00
parent 060171028c
commit 09edee123a
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;