diff options
author | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-02 16:02:22 +0200 |
---|---|---|
committer | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-05 20:39:13 +0200 |
commit | ef0aac432c986f52a1b973bcd73ddf7324e0e70f (patch) | |
tree | 632580dc2fe4fd5ef1412ebee1f88d7d32bae917 | |
parent | 3e91ec07e464ffc0f039283f6078b34e596b2086 (diff) |
Fix unused make_connection_string() warning [-Werror=unused-function]
This function is used when USE_VFORK is unset.
-rw-r--r-- | svr-chansession.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svr-chansession.c b/svr-chansession.c index 5bed8fc..6d08d3f 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -603,6 +603,7 @@ static int sessionpty(struct ChanSess * chansess) { return DROPBEAR_SUCCESS; } +#ifndef USE_VFORK static void make_connection_string(struct ChanSess *chansess) { char *local_ip, *local_port, *remote_ip, *remote_port; size_t len; @@ -624,6 +625,7 @@ static void make_connection_string(struct ChanSess *chansess) { m_free(remote_ip); m_free(remote_port); } +#endif /* Handle a command request from the client. This is used for both shell * and command-execution requests, and passes the command to |