aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-09-10 17:46:03 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-09-10 17:46:03 -0700
commitb486badd04d1d4fc0a44e2417349d4c22960f938 (patch)
treed2ff83ad8af61ae4b98dd6280373c0b36e2ca2e1
parent476fe646e1f462c50392fe9558d0fc9168a12246 (diff)
downloadlwip-b486badd04d1d4fc0a44e2417349d4c22960f938.tar.gz
lwip-b486badd04d1d4fc0a44e2417349d4c22960f938.tar.xz
lwip-b486badd04d1d4fc0a44e2417349d4c22960f938.zip
lwip: sys_arch: actually return the semaphore from sys_sem_new()
Allocating and initializing the semaphore is great, but it needs to actually be returned to the program, too... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--core/lwip/src/arch/sys_arch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/lwip/src/arch/sys_arch.c b/core/lwip/src/arch/sys_arch.c
index db68e864..bd71052e 100644
--- a/core/lwip/src/arch/sys_arch.c
+++ b/core/lwip/src/arch/sys_arch.c
@@ -15,6 +15,7 @@ sys_sem_t sys_sem_new(u8_t count)
return NULL;
sem_init(sem, count);
+ return sem;
}
void sys_sem_free(sys_sem_t sem)