Make service name const.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@392 7dcaeef0-15fb-0310-b436-a5af3365683c
Этот коммит содержится в:
родитель
b239fda60c
Коммит
dbab7b5a18
@ -208,7 +208,7 @@ void ssh_silent_disconnect(SSH_SESSION *session);
|
|||||||
/* client.c */
|
/* client.c */
|
||||||
int ssh_connect(SSH_SESSION *session);
|
int ssh_connect(SSH_SESSION *session);
|
||||||
void ssh_disconnect(SSH_SESSION *session);
|
void ssh_disconnect(SSH_SESSION *session);
|
||||||
int ssh_service_request(SSH_SESSION *session,char *service);
|
int ssh_service_request(SSH_SESSION *session, const char *service);
|
||||||
char *ssh_get_issue_banner(SSH_SESSION *session);
|
char *ssh_get_issue_banner(SSH_SESSION *session);
|
||||||
/* get copyright informations */
|
/* get copyright informations */
|
||||||
const char *ssh_copyright(void);
|
const char *ssh_copyright(void);
|
||||||
|
@ -254,7 +254,7 @@ static int dh_handshake(SSH_SESSION *session){
|
|||||||
return SSH_ERROR;
|
return SSH_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ssh_service_request(SSH_SESSION *session,char *service){
|
int ssh_service_request(SSH_SESSION *session, const char *service) {
|
||||||
STRING *service_s;
|
STRING *service_s;
|
||||||
enter_function();
|
enter_function();
|
||||||
buffer_add_u8(session->out_buffer,SSH2_MSG_SERVICE_REQUEST);
|
buffer_add_u8(session->out_buffer,SSH2_MSG_SERVICE_REQUEST);
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user