drivers/net/telnet.c: Fix a C89 non-compliance that was breaking the ez80 build.
This commit is contained in:
parent
e4069ebe5e
commit
7a0481d2a9
@ -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);
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user