You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/02/08 16:33:48 UTC
[incubator-nuttx-apps] 02/02: netutils/telnetd/telnetd_daemon.c:
Avoid a warning if CONFIG_NET_SOCKOPTS=n
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit c8dbd59e9a8f2f7c9bb4391a32fda01b409059e2
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Sat Feb 8 10:24:16 2020 -0600
netutils/telnetd/telnetd_daemon.c: Avoid a warning if CONFIG_NET_SOCKOPTS=n
---
netutils/telnetd/telnetd_daemon.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/netutils/telnetd/telnetd_daemon.c b/netutils/telnetd/telnetd_daemon.c
index 1720e32..caff6ef 100644
--- a/netutils/telnetd/telnetd_daemon.c
+++ b/netutils/telnetd/telnetd_daemon.c
@@ -127,7 +127,9 @@ static int telnetd_daemon(int argc, FAR char *argv[])
int listensd;
int acceptsd;
int drvrfd;
+#ifdef CONFIG_NET_SOCKOPTS
int optval;
+#endif
int ret;
int fd;