From 4ae74fffb939d67424efa3e7f433637f1f920ebc Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 29 Apr 2009 17:46:36 -0700 Subject: [PATCH] Eliminate incorrect cast in printf string argument char * is a pointer to a string in the default address space, not a generic pointer to a string. As such, the compiler (at least 2.9.0) mis-compiles this if the cast is included. --- ao_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ao_task.c b/ao_task.c index b69f51ee..06c279e9 100644 --- a/ao_task.c +++ b/ao_task.c @@ -209,7 +209,7 @@ ao_task_info(void) task = ao_tasks[i]; pc_loc = task->stack_count - 17; printf("%12s: wchan %04x pc %04x\n", - (char *) task->name, + task->name, (int16_t) task->wchan, (task->stack[pc_loc]) | (task->stack[pc_loc+1] << 8)); } -- 2.30.2