diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-01-24 22:30:43 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-01-24 22:30:43 +0100 |
commit | 3465b592e717836709544e07e3a14c13c66e8444 (patch) | |
tree | cfaaf7d3f429b1fd4d60aee3257eae18e0cef665 /libssh | |
parent | ca499a54956ca778835171688d0d79969aa74dd5 (diff) | |
download | libssh-3465b592e717836709544e07e3a14c13c66e8444.tar.gz libssh-3465b592e717836709544e07e3a14c13c66e8444.tar.xz libssh-3465b592e717836709544e07e3a14c13c66e8444.zip |
Few function name changes
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/packet.c | 8 | ||||
-rw-r--r-- | libssh/packet1.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libssh/packet.c b/libssh/packet.c index 743559e0..208b1700 100644 --- a/libssh/packet.c +++ b/libssh/packet.c @@ -258,7 +258,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user) session->recv_seq++; /* We don't want to rewrite a new packet while still executing the packet callbacks */ session->packet_state = PACKET_STATE_PROCESSING; - packet_translate(session); + ssh_packet_parse_type(session); /* execute callbacks */ ssh_packet_process(session, session->in_packet.type); session->packet_state = PACKET_STATE_INIT; @@ -361,7 +361,7 @@ error: /** @internal * @parse the "Type" header field of a packet and updates the session */ -int packet_translate(ssh_session session) { +int ssh_packet_parse_type(ssh_session session) { enter_function(); memset(&session->in_packet, 0, sizeof(PACKET)); @@ -404,7 +404,7 @@ int packet_flush(ssh_session session, int enforce_blocking) { * This function places the outgoing packet buffer into an outgoing * socket buffer */ -static int packet_write(ssh_session session) { +static int ssh_packet_write(ssh_session session) { int rc = SSH_ERROR; enter_function(); @@ -483,7 +483,7 @@ static int packet_send2(ssh_session session) { } } - rc = packet_write(session); + rc = ssh_packet_write(session); session->send_seq++; if (buffer_reinit(session->out_buffer) < 0) { diff --git a/libssh/packet1.c b/libssh/packet1.c index 49e4fdf2..ec4f99cb 100644 --- a/libssh/packet1.c +++ b/libssh/packet1.c @@ -216,7 +216,7 @@ int ssh_packet_socket_callback1(const void *data, size_t receivedlen, void *user session->recv_seq++; /* We don't want to rewrite a new packet while still executing the packet callbacks */ session->packet_state = PACKET_STATE_PROCESSING; - packet_translate(session); + ssh_packet_parse_type(session); /* execute callbacks */ ssh_packet_process(session, session->in_packet.type); session->packet_state = PACKET_STATE_INIT; |