drivers/net/telnet.c: Fix a C89 non-compliance that was breaking the ez80 build.

This commit is contained in:
Gregory Nutt 2019-06-03 08:20:21 -06:00
parent e4069ebe5e
commit 7a0481d2a9
3 changed files with 7 additions and 3 deletions

View File

@ -890,6 +890,8 @@ static ssize_t telnet_read(FAR struct file *filep, FAR char *buffer,
do
{
FAR const char *src;
if (priv->td_pending == 0)
{
if (filep->f_oflags & O_NONBLOCK)
@ -919,7 +921,7 @@ static ssize_t telnet_read(FAR struct file *filep, FAR char *buffer,
/* Process the buffered telnet data */
FAR const char *src = &priv->td_rxbuffer[priv->td_offset];
src = &priv->td_rxbuffer[priv->td_offset];
ret = telnet_receive(priv, src, priv->td_pending, buffer, len);
nxsem_post(&priv->td_exclsem);

View File

@ -468,7 +468,8 @@ int nxsig_usleep(useconds_t usec);
* the client.
* code - Source: SI_USER, SI_QUEUE, SI_TIMER, SI_ASYNCIO, or SI_MESGQ
* work - The work structure to queue. Must be non-NULL if
* event->sigev_notify == SIGEV_THREAD
* event->sigev_notify == SIGEV_THREAD. Ignored if
* CONFIG_SIG_EVTHREAD is not defined.
*
* Returned Value:
* This is an internal OS interface and should not be used by applications.

View File

@ -101,7 +101,8 @@ static void nxsig_notification_worker(FAR void *arg)
* the client.
* code - Source: SI_USER, SI_QUEUE, SI_TIMER, SI_ASYNCIO, or SI_MESGQ
* work - The work structure to queue. Must be non-NULL if
* event->sigev_notify == SIGEV_THREAD
* event->sigev_notify == SIGEV_THREAD. Ignored if
* CONFIG_SIG_EVTHREAD is not defined.
*
* Returned Value:
* This is an internal OS interface and should not be used by applications.