aboutsummaryrefslogtreecommitdiffstats
path: root/os/various
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-09-29 08:39:25 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-09-29 08:39:25 +0000
commitdfe1ebcefa6c5f5fd7ee60da8d84d7c5e1015341 (patch)
tree9c581ef612e9a97d80a7a5acb86f7712555d3bd7 /os/various
parent9d1013bf3117d74c668f2430c80f49271703737e (diff)
downloadChibiOS-dfe1ebcefa6c5f5fd7ee60da8d84d7c5e1015341.tar.gz
ChibiOS-dfe1ebcefa6c5f5fd7ee60da8d84d7c5e1015341.tar.bz2
ChibiOS-dfe1ebcefa6c5f5fd7ee60da8d84d7c5e1015341.zip
Fixed bug 3571053.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4727 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various')
-rw-r--r--os/various/lwip_bindings/arch/sys_arch.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/os/various/lwip_bindings/arch/sys_arch.c b/os/various/lwip_bindings/arch/sys_arch.c
index 6880ccf18..0154e5fcc 100644
--- a/os/various/lwip_bindings/arch/sys_arch.c
+++ b/os/various/lwip_bindings/arch/sys_arch.c
@@ -194,9 +194,12 @@ void sys_mbox_set_invalid(sys_mbox_t *mbox) {
sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread,
void *arg, int stacksize, int prio) {
+ size_t wsz;
+ void *wsp;
+
(void)name;
- size_t wsz = THD_WA_SIZE(stacksize);
- void *wsp = chCoreAlloc(wsz);
+ wsz = THD_WA_SIZE(stacksize);
+ wsp = chCoreAlloc(wsz);
if (wsp == NULL)
return NULL;
return (sys_thread_t)chThdCreateStatic(wsp, wsz, prio, (tfunc_t)thread, arg);