summaryrefslogtreecommitdiffhomepage
path: root/cli-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2009-06-08 14:53:29 +0000
committerMatt Johnston <matt@ucc.asn.au>2009-06-08 14:53:29 +0000
commit4be3826dd5426923b12fd0326783973e1af38228 (patch)
tree3d71edf24b4dfdd7f7e40a6d8ca48fc8a3e17c75 /cli-main.c
parenta21cf67a6c5bfed10175c9cdeee312d697aa3343 (diff)
Wrap proxycmd function in ENABLE_CLI_PROXYCMD #ifdef
(commit the right file this time) --HG-- extra : convert_revision : d86e846566d01b739b51fa2ecdb8f62006e38dbd
Diffstat (limited to 'cli-main.c')
-rw-r--r--cli-main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli-main.c b/cli-main.c
index 4ba43c0..2c329a4 100644
--- a/cli-main.c
+++ b/cli-main.c
@@ -32,7 +32,9 @@
static void cli_dropbear_exit(int exitcode, const char* format, va_list param);
static void cli_dropbear_log(int priority, const char* format, va_list param);
+#ifdef ENABLE_CLI_PROXYCMD
static void cli_proxy_cmd(int *sock_in, int *sock_out);
+#endif
#if defined(DBMULTI_dbclient) || !defined(DROPBEAR_MULTI)
#if defined(DBMULTI_dbclient) && defined(DROPBEAR_MULTI)
@@ -132,6 +134,7 @@ static void exec_proxy_cmd(void *user_data_cmd) {
dropbear_exit("Failed to run '%s'\n", cmd);
}
+#ifdef ENABLE_CLI_PROXYCMD
static void cli_proxy_cmd(int *sock_in, int *sock_out) {
int ret;
@@ -144,3 +147,4 @@ static void cli_proxy_cmd(int *sock_in, int *sock_out) {
*sock_in = *sock_out = -1;
}
}
+#endif // ENABLE_CLI_PROXYCMD