aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-28 15:24:40 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-24 09:48:35 +0200
commitca425ebe6727063d26de7da194b50f675d00d952 (patch)
treee56ceea941a889362b6ccaca5a47df754cedf95f
parent7e6b5402778f57962415aa7eb508e7353e6ebb58 (diff)
downloadlibssh-ca425ebe6727063d26de7da194b50f675d00d952.tar.gz
libssh-ca425ebe6727063d26de7da194b50f675d00d952.tar.xz
libssh-ca425ebe6727063d26de7da194b50f675d00d952.zip
messages: Make ssh_message_queue() static
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--include/libssh/messages.h1
-rw-r--r--src/messages.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libssh/messages.h b/include/libssh/messages.h
index 4467902a..07caa1ee 100644
--- a/include/libssh/messages.h
+++ b/include/libssh/messages.h
@@ -101,7 +101,6 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_request);
int ssh_message_handle_channel_request(ssh_session session, ssh_channel channel, ssh_buffer packet,
const char *request, uint8_t want_reply);
-void ssh_message_queue(ssh_session session, ssh_message message);
ssh_message ssh_message_pop_head(ssh_session session);
int ssh_message_channel_request_open_reply_accept_channel(ssh_message msg, ssh_channel chan);
diff --git a/src/messages.c b/src/messages.c
index 8d454d3b..ece578f4 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -408,7 +408,8 @@ static int ssh_execute_message_callback(ssh_session session, ssh_message msg) {
*
* @param[in] message The message to add to the queue.
*/
-void ssh_message_queue(ssh_session session, ssh_message message){
+static void ssh_message_queue(ssh_session session, ssh_message message)
+{
if (message != NULL) {
#ifdef WITH_SERVER
int ret;