]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/arch/sys_arch.c
Data type casting added to fix warnings
[pes-rpp/rpp-lwip.git] / src / arch / sys_arch.c
index 726e2dd77dd7bfb9f20318c0d9bd102dfd5819d7..70d5f2212d488142527054833c12ecd3b07803cd 100644 (file)
@@ -168,7 +168,7 @@ void sys_mbox_free(sys_mbox_t *mbox)
 sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stacksize, int prio)
 {
        xTaskHandle *pvCreatedTask = NULL;
-       if(xTaskCreate(thread, (const signed char *) name, (unsigned short)stacksize, arg, prio, pvCreatedTask) != pdPASS)
+       if(xTaskCreate(thread, FREERTOS_TASK_NAME(name), (unsigned short)stacksize, arg, prio, pvCreatedTask) != pdPASS)
                return NULL; /* lwIP doesn't specify, how should be informed that thread creation failed */
        return pvCreatedTask;
 }