Fix warnings.

This commit is contained in:
Simon Josefsson 2007-01-23 12:44:14 +00:00
parent 1826e7365d
commit b1d855d1ac

View File

@ -99,7 +99,7 @@ libssh2_hostkey_method_ssh_rsa_init(LIBSSH2_SESSION *session,
* Load a Private Key from a PEM file
*/
static int libssh2_hostkey_method_ssh_rsa_initPEM(LIBSSH2_SESSION *session,
unsigned const char *privkeyfile, unsigned const char *passphrase, void **abstract)
const char *privkeyfile, unsigned const char *passphrase, void **abstract)
{
libssh2_rsa_ctx *rsactx;
FILE *fp;
@ -110,7 +110,7 @@ static int libssh2_hostkey_method_ssh_rsa_initPEM(LIBSSH2_SESSION *session,
*abstract = NULL;
}
fp = fopen((char *)privkeyfile, "r");
fp = fopen(privkeyfile, "r");
if (!fp) {
return -1;
}
@ -257,7 +257,7 @@ libssh2_hostkey_method_ssh_dss_init(LIBSSH2_SESSION *session,
* Load a Private Key from a PEM file
*/
static int libssh2_hostkey_method_ssh_dss_initPEM(LIBSSH2_SESSION *session,
unsigned const char *privkeyfile,
const char *privkeyfile,
unsigned const char *passphrase,
void **abstract)
{