-#include <cfg/cfg_lwip.h>
+#include "cfg/cfg_lwip.h"
#define LOG_LEVEL 3
#define LOG_FORMAT 0
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;
}
static int last_stack;
#endif
-sys_thread_t sys_thread_new(char *name, void (* thread)(void *arg),
+sys_thread_t sys_thread_new(const char *name, void (* thread)(void *arg),
void *arg, int stacksize, int prio)
{
ThreadNode *thread_node;
#if CONFIG_KERN_PRI
proc_setPri(thread_node->pid, prio);
+ #else
+ /* Avoid warnings when priorities are disabled */
+ (void) prio;
#endif
return thread_node->pid;