Merged in dagar/nuttx/pr-telnet_unused_priv (pull request #803)

telnet.c priv only used if CONFIG_TELNET_SUPPORT_NAWS

Approved-by: GregoryN <gnutt@nuttx.org>
This commit is contained in:
Daniel Agar 2019-01-06 16:15:56 +00:00 committed by GregoryN
parent 1727e47d2e
commit 62fe15e87c

View File

@ -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)