Mercurial > dropbear
comparison svr-chansession.c @ 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 | 9699b9438ad9 |
children | c45d65392c1a |
comparison
equal
deleted
inserted
replaced
1092:0e1465709336 | 1093:aae71c5f7d5b |
---|---|
601 | 601 |
602 TRACE(("leave sessionpty")) | 602 TRACE(("leave sessionpty")) |
603 return DROPBEAR_SUCCESS; | 603 return DROPBEAR_SUCCESS; |
604 } | 604 } |
605 | 605 |
606 #ifndef USE_VFORK | |
606 static void make_connection_string(struct ChanSess *chansess) { | 607 static void make_connection_string(struct ChanSess *chansess) { |
607 char *local_ip, *local_port, *remote_ip, *remote_port; | 608 char *local_ip, *local_port, *remote_ip, *remote_port; |
608 size_t len; | 609 size_t len; |
609 get_socket_address(ses.sock_in, &local_ip, &local_port, &remote_ip, &remote_port, 0); | 610 get_socket_address(ses.sock_in, &local_ip, &local_port, &remote_ip, &remote_port, 0); |
610 | 611 |
622 m_free(local_ip); | 623 m_free(local_ip); |
623 m_free(local_port); | 624 m_free(local_port); |
624 m_free(remote_ip); | 625 m_free(remote_ip); |
625 m_free(remote_port); | 626 m_free(remote_port); |
626 } | 627 } |
628 #endif | |
627 | 629 |
628 /* Handle a command request from the client. This is used for both shell | 630 /* Handle a command request from the client. This is used for both shell |
629 * and command-execution requests, and passes the command to | 631 * and command-execution requests, and passes the command to |
630 * noptycommand or ptycommand as appropriate. | 632 * noptycommand or ptycommand as appropriate. |
631 * Returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */ | 633 * Returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */ |