From b35bf20824ceed3e6b45da2ae92b1c0b60041b71 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 7 Feb 2020 07:16:21 -0600 Subject: [PATCH] drivers/net/telnet.c: Run file changed in last PR through nxstyle. --- drivers/net/telnet.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/net/telnet.c b/drivers/net/telnet.c index 33fe9df706..f4ba19d979 100644 --- a/drivers/net/telnet.c +++ b/drivers/net/telnet.c @@ -1,7 +1,7 @@ /**************************************************************************** * drivers/net/telnet.c * - * Copyright (C) 2007, 2009, 2011-2013, 2017, 2019 Gregory Nutt. All + * Copyright (C) 2007, 2009, 2011-2013, 2017, 2019, 2020 Gregory Nutt. All * rights reserved. * Author: Gregory Nutt * @@ -270,8 +270,8 @@ static inline void telnet_dumpbuffer(FAR const char *msg, FAR const char *buffer, unsigned int nbytes) { - /* CONFIG_DEBUG_FEATURES, CONFIG_DEBUG_INFO, and CONFIG_DEBUG_NET have to be - * defined or the following does nothing. + /* CONFIG_DEBUG_FEATURES, CONFIG_DEBUG_INFO, and CONFIG_DEBUG_NET have to + * be defined or the following does nothing. */ ninfodumpbuffer(msg, (FAR const uint8_t *)buffer, nbytes); @@ -933,7 +933,8 @@ static ssize_t telnet_write(FAR struct file *filep, FAR const char *buffer, ret = psock_send(&priv->td_psock, priv->td_txbuffer, ncopied, 0); if (ret < 0) { - nerr("ERROR: psock_send failed '%s': %d\n", priv->td_txbuffer, ret); + nerr("ERROR: psock_send failed '%s': %d\n", + priv->td_txbuffer, ret); return ret; } } @@ -1046,6 +1047,7 @@ static int telnet_session(FAR struct telnet_session_s *session) TELNET_DEVFMT, priv->td_minor); break; } + priv->td_minor++; } @@ -1093,7 +1095,8 @@ static int telnet_session(FAR struct telnet_session_s *session) g_telnet_io_kthread = kthread_create("telnet_io", CONFIG_TELNET_IOTHREAD_PRIORITY, - CONFIG_TELNET_IOTHREAD_STACKSIZE, telnet_io_main, NULL); + CONFIG_TELNET_IOTHREAD_STACKSIZE, telnet_io_main, + NULL); } /* Save ourself in the list of Telnet client threads */