From: lottaviano Date: Thu, 7 Apr 2011 07:53:52 +0000 (+0000) Subject: Fix compilation warnings. X-Git-Tag: 2.7.0~131 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;ds=sidebyside;h=0e785d04f7bf33e6d8c69e74a4a71083be1878e7;p=bertos.git Fix compilation warnings. LWIP sys_thread_new() should not modify the thread name in input, fixed using the const qualifier. This is also fixed in upstream LWIP code. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4835 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/net/lwip/src/arch/sys_arch.c b/bertos/net/lwip/src/arch/sys_arch.c index 61d91dc3..4ef9d08c 100644 --- a/bertos/net/lwip/src/arch/sys_arch.c +++ b/bertos/net/lwip/src/arch/sys_arch.c @@ -348,7 +348,7 @@ static cpu_stack_t thread_stack[MAX_THREAD_CNT] 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; diff --git a/bertos/net/lwip/src/include/lwip/sys.h b/bertos/net/lwip/src/include/lwip/sys.h index 0cc84ddf..93bbb53f 100644 --- a/bertos/net/lwip/src/include/lwip/sys.h +++ b/bertos/net/lwip/src/include/lwip/sys.h @@ -136,7 +136,7 @@ void sys_mbox_free(sys_mbox_t mbox); void sys_mbox_fetch(sys_mbox_t mbox, void **msg); /* Thread functions. */ -sys_thread_t sys_thread_new(char *name, void (* thread)(void *arg), void *arg, int stacksize, int prio); +sys_thread_t sys_thread_new(const char *name, void (* thread)(void *arg), void *arg, int stacksize, int prio); #endif /* NO_SYS */