aboutsummaryrefslogtreecommitdiff
path: root/libssh/messages.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-01-08 22:28:40 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2010-01-08 22:28:40 +0100
commit74009e2be5ca6914f478b8022a27cd8948da4c57 (patch)
tree4b1432ab908cbd926851a48eb1384f44713d2ac0 /libssh/messages.c
parent40871ab1ccee48d9a8a0d1c43d6dc2ea3ecc4691 (diff)
downloadlibssh-74009e2be5ca6914f478b8022a27cd8948da4c57.tar.gz
libssh-74009e2be5ca6914f478b8022a27cd8948da4c57.tar.xz
libssh-74009e2be5ca6914f478b8022a27cd8948da4c57.zip
Prefix message_new with ssh_
Diffstat (limited to 'libssh/messages.c')
-rw-r--r--libssh/messages.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libssh/messages.c b/libssh/messages.c
index 861693cd..b90b090e 100644
--- a/libssh/messages.c
+++ b/libssh/messages.c
@@ -51,7 +51,7 @@
#include "libssh/dh.h"
#include "libssh/messages.h"
-static ssh_message message_new(ssh_session session){
+static ssh_message ssh_message_new(ssh_session session){
ssh_message msg = malloc(sizeof(struct ssh_message_struct));
if (msg == NULL) {
return NULL;
@@ -81,7 +81,7 @@ SSH_PACKET_CALLBACK(ssh_packet_service_request){
}
ssh_log(session, SSH_LOG_PACKET,
"Received a SERVICE_REQUEST for service %s", service_c);
- msg=message_new(session);
+ msg=ssh_message_new(session);
if(!msg){
SAFE_FREE(service_c);
goto error;
@@ -113,7 +113,7 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_request){
(void)user;
(void)type;
- msg = message_new(session);
+ msg = ssh_message_new(session);
if (msg == NULL) {
ssh_set_error_oom(session);
goto error;
@@ -295,7 +295,7 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open){
enter_function();
(void)type;
(void)user;
- msg = message_new(session);
+ msg = ssh_message_new(session);
if (msg == NULL) {
ssh_set_error_oom(session);
goto error;
@@ -515,7 +515,7 @@ int ssh_message_handle_channel_request(ssh_session session, ssh_channel channel,
const char *request, uint8_t want_reply) {
ssh_message msg = NULL;
enter_function();
- msg = message_new(session);
+ msg = ssh_message_new(session);
if (msg == NULL) {
ssh_set_error_oom(session);
goto error;