diff cli-main.c @ 542:c9128994a2d6

Wrap proxycmd function in ENABLE_CLI_PROXYCMD #ifdef (commit the right file this time)
author Matt Johnston <matt@ucc.asn.au>
date Mon, 08 Jun 2009 14:53:29 +0000
parents effb4a25b1ae
children 9e51707cd6f2
line wrap: on
line diff
--- a/cli-main.c	Mon Jun 08 14:51:22 2009 +0000
+++ b/cli-main.c	Mon Jun 08 14:53:29 2009 +0000
@@ -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 @@
 	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 @@
 		*sock_in = *sock_out = -1;
 	}
 }
+#endif // ENABLE_CLI_PROXYCMD