changeset 1093:aae71c5f7d5b

Fix unused make_connection_string() warning [-Werror=unused-function] This function is used when USE_VFORK is unset.
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 16:02:22 +0200
parents 0e1465709336
children c45d65392c1a 391bb7d560c6
files svr-chansession.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/svr-chansession.c	Sat May 02 12:18:22 2015 +0200
+++ b/svr-chansession.c	Sat May 02 16:02:22 2015 +0200
@@ -603,6 +603,7 @@
 	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 @@
 	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