diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-05 09:41:54 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-05 09:41:54 +0000 |
commit | 139eb4696c990e8429f2bc3abf1d9bb144effdee (patch) | |
tree | affb0a0ab4ec3fd1cb99649e5ae6a789e43d4bb5 /include/libssh/libssh.h | |
parent | ef1a41efcf92d7914f93b1cc851bcb5b22518172 (diff) | |
download | libssh-139eb4696c990e8429f2bc3abf1d9bb144effdee.tar.gz libssh-139eb4696c990e8429f2bc3abf1d9bb144effdee.tar.xz libssh-139eb4696c990e8429f2bc3abf1d9bb144effdee.zip |
Fix build warnings, mostly const chars.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@394 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r-- | include/libssh/libssh.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index eb9cb6b..3ede96a 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -253,26 +253,28 @@ STRING *publickey_to_string(PUBLIC_KEY *key); PUBLIC_KEY *publickey_from_privatekey(PRIVATE_KEY *prv); void private_key_free(PRIVATE_KEY *prv); STRING *publickey_from_file(SSH_SESSION *session, char *filename,int *_type); -STRING *publickey_from_next_file(SSH_SESSION *session,char **pub_keys_path,char **keys_path, - char **privkeyfile,int *type,int *count); +STRING *publickey_from_next_file(SSH_SESSION *session, const char **pub_keys_path, + const char **keys_path, char **privkeyfile, int *type, int *count); int ssh_is_server_known(SSH_SESSION *session); int ssh_write_knownhost(SSH_SESSION *session); /* in channels.c */ CHANNEL *channel_new(SSH_SESSION *session); -int channel_open_forward(CHANNEL *channel,char *remotehost, int remoteport, char *sourcehost, int localport); +int channel_open_forward(CHANNEL *channel, const char *remotehost, + int remoteport, const char *sourcehost, int localport); int channel_open_session(CHANNEL *channel); void channel_free(CHANNEL *channel); int channel_request_pty(CHANNEL *channel); -int channel_request_pty_size(CHANNEL *channel, char *term,int cols, int rows); +int channel_request_pty_size(CHANNEL *channel, const char *term, + int cols, int rows); int channel_change_pty_size(CHANNEL *channel,int cols,int rows); int channel_request_shell(CHANNEL *channel); -int channel_request_subsystem(CHANNEL *channel, char *system); -int channel_request_env(CHANNEL *channel,char *name, char *value); -int channel_request_exec(CHANNEL *channel, char *cmd); +int channel_request_subsystem(CHANNEL *channel, const char *system); +int channel_request_env(CHANNEL *channel, const char *name, const char *value); +int channel_request_exec(CHANNEL *channel, const char *cmd); int channel_request_sftp(CHANNEL *channel); -int channel_write(CHANNEL *channel, void *data, u32 len); +int channel_write(CHANNEL *channel, const void *data, u32 len); int channel_send_eof(CHANNEL *channel); int channel_is_eof(CHANNEL *channel); int channel_read(CHANNEL *channel, BUFFER *buffer, u32 bytes, int is_stderr); |