Fix warnings.

This commit is contained in:
Simon Josefsson
2007-01-23 12:44:14 +00:00
parent b1d855d1ac
commit d2be40421a
7 changed files with 25 additions and 15 deletions

View File

@@ -90,14 +90,14 @@ static int init (LIBSSH2_SESSION *session,
return 0;
}
int crypt(LIBSSH2_SESSION *session, unsigned char *block, void **abstract)
static int crypt(LIBSSH2_SESSION *session, unsigned char *block, void **abstract)
{
struct crypt_ctx *cctx = *(struct crypt_ctx **)abstract;
return _libssh2_cipher_crypt(&cctx->h, cctx->algo,
cctx->encrypt, block);
}
int dtor(LIBSSH2_SESSION *session, void **abstract)
static int dtor(LIBSSH2_SESSION *session, void **abstract)
{
struct crypt_ctx **cctx = (struct crypt_ctx **)abstract;
if (cctx && *cctx) {