lwip: fix wrong error return process of sem_tickwait
authorEunBong Song <eunb.song@samsung.com>
Tue, 16 May 2017 01:28:50 +0000 (10:28 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 23 May 2017 12:40:02 +0000 (21:40 +0900)
commitc752865c1b97260731d4c09bbbcfa1c619699e01
treea18d0bc48dd4178eb3d3d48e5ab818c0de905658
parentd6acead737440ef4b82e83e9cb7d27f0bae9f081
lwip: fix wrong error return process of sem_tickwait

In case of timeout, sem_tickwait returns -ETIMEDOUT and does not set
errno to ETIMEDOUT. But sys_arch_sem_wait decides timeout by errno. This
patch fixes this problem.

Change-Id: I26f609b64647035e8d8c14016f81f33b00dce1d4
Signed-off-by: EunBong Song <eunb.song@samsung.com>
os/net/lwip/sys/arch/sys_arch.c