[rtems-libbsd commit] config: Fix telnetd configuration warning.

Chris Johns chrisj at rtems.org
Mon Jul 18 22:12:52 UTC 2016


Module:    rtems-libbsd
Branch:    master
Commit:    95100121dcc592cb8f9838324c33ce13cce4bbe6
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=95100121dcc592cb8f9838324c33ce13cce4bbe6

Author:    Chris Johns <chrisj at rtems.org>
Date:      Tue Jul 19 08:12:17 2016 +1000

config: Fix telnetd configuration warning.

---

 rtemsbsd/include/machine/rtems-bsd-config.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/rtemsbsd/include/machine/rtems-bsd-config.h b/rtemsbsd/include/machine/rtems-bsd-config.h
index a8e9678..7a4750f 100644
--- a/rtemsbsd/include/machine/rtems-bsd-config.h
+++ b/rtemsbsd/include/machine/rtems-bsd-config.h
@@ -131,10 +131,11 @@ extern "C" {
  * Telnetd
  */
 #if defined(RTEMS_BSD_CONFIG_SERVICE_TELNETD)
-  #if defined(RTEMS_BSD_CONFIG_TELNETD_STACK_SIZE)
-    #define RTEMS_BSD_CFGDECL_TELNETD_STACK_SIZE \
-      int rtems_telnetd_stack_size = RTEMS_BSD_CONFIG_TELNETD_STACK_SIZE
+  #if !defined(RTEMS_BSD_CONFIG_TELNETD_STACK_SIZE)
+    #define RTEMS_BSD_CONFIG_TELNETD_STACK_SIZE (8 * 1024)
   #endif /* RTEMS_BSD_CONFIG_TELNETD_STACK_SIZE */
+  #define RTEMS_BSD_CFGDECL_TELNETD_STACK_SIZE \
+    int rtems_telnetd_stack_size = RTEMS_BSD_CONFIG_TELNETD_STACK_SIZE
   #define RTEMS_BSD_CFGDECL_TELNETD RTEMS_BSD_RC_CONF_SYSINT(rc_conf_telnetd)
 #else
   #define RTEMS_BSD_CFGDECL_TELNETD_STACK_SIZE



More information about the vc mailing list