summaryrefslogtreecommitdiff
path: root/nuttx/arch/z16/src/common/up_sigdeliver.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/z16/src/common/up_sigdeliver.c')
-rw-r--r--nuttx/arch/z16/src/common/up_sigdeliver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/z16/src/common/up_sigdeliver.c b/nuttx/arch/z16/src/common/up_sigdeliver.c
index afc554e85..e6aa6325d 100644
--- a/nuttx/arch/z16/src/common/up_sigdeliver.c
+++ b/nuttx/arch/z16/src/common/up_sigdeliver.c
@@ -91,7 +91,7 @@ void up_sigdeliver(void)
* EINTR).
*/
- int saved_errno = rtcb->errno;
+ int saved_errno = rtcb->pterrno;
up_ledon(LED_SIGNAL);
@@ -131,7 +131,7 @@ void up_sigdeliver(void)
*/
dbg("Resuming\n");
- rtcb->errno = saved_errno;
+ rtcb->pterrno = saved_errno;
/* Then restore the correct state for this thread of
* execution.