diff --git a/drivers/net/telnet.c b/drivers/net/telnet.c index 5831c7b0adb..08209906949 100644 --- a/drivers/net/telnet.c +++ b/drivers/net/telnet.c @@ -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); diff --git a/include/nuttx/signal.h b/include/nuttx/signal.h index 99dcf858ee7..d3cfcd337cd 100644 --- a/include/nuttx/signal.h +++ b/include/nuttx/signal.h @@ -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. diff --git a/sched/signal/sig_notification.c b/sched/signal/sig_notification.c index 9067e7220d3..b1f19c97869 100644 --- a/sched/signal/sig_notification.c +++ b/sched/signal/sig_notification.c @@ -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.