projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix callback type.
[bertos.git]
/
bertos
/
net
/
lwip
/
src
/
arch
/
sys_arch.c
diff --git
a/bertos/net/lwip/src/arch/sys_arch.c
b/bertos/net/lwip/src/arch/sys_arch.c
index 61d91dc36a06debefec2775fb3870ee204e168fb..d626f0cfd09933c66d6d9c9e3462808fa95dfd5d 100644
(file)
--- a/
bertos/net/lwip/src/arch/sys_arch.c
+++ b/
bertos/net/lwip/src/arch/sys_arch.c
@@
-317,15
+317,6
@@
static struct sys_timeouts lwip_system_timeouts; // Default timeouts list for lw
struct sys_timeouts *sys_arch_timeouts(void)
{
struct sys_timeouts *sys_arch_timeouts(void)
{
- ThreadNode *thread_node;
- struct Process *curr_pid = proc_current();
-
- FOREACH_NODE(thread_node, &used_thread)
- {
- if (thread_node->pid == curr_pid)
- return &(thread_node->timeout);
- }
-
return &lwip_system_timeouts;
}
return &lwip_system_timeouts;
}
@@
-348,7
+339,7
@@
static cpu_stack_t thread_stack[MAX_THREAD_CNT]
static int last_stack;
#endif
static int last_stack;
#endif
-sys_thread_t sys_thread_new(char *name, void (* thread)(void *arg),
+sys_thread_t sys_thread_new(c
onst c
har *name, void (* thread)(void *arg),
void *arg, int stacksize, int prio)
{
ThreadNode *thread_node;
void *arg, int stacksize, int prio)
{
ThreadNode *thread_node;