From 62fe15e87cd8681f778acc82b92e31efd490d144 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sun, 6 Jan 2019 16:15:56 +0000 Subject: [PATCH] Merged in dagar/nuttx/pr-telnet_unused_priv (pull request #803) telnet.c priv only used if CONFIG_TELNET_SUPPORT_NAWS Approved-by: GregoryN --- drivers/net/telnet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/telnet.c b/drivers/net/telnet.c index 1bcd1e5eab..b94652e4fa 100644 --- a/drivers/net/telnet.c +++ b/drivers/net/telnet.c @@ -1118,7 +1118,9 @@ static int telnet_poll(FAR struct file *filep, FAR struct pollfd *fds, static int common_ioctl(FAR struct file *filep, int cmd, unsigned long arg) { FAR struct inode *inode = filep->f_inode; +#ifdef CONFIG_TELNET_SUPPORT_NAWS FAR struct telnet_dev_s *priv = inode->i_private; +#endif int ret; switch (cmd)