summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-29 17:46:36 -0700
committerKeith Packard <keithp@keithp.com>2009-04-29 17:46:36 -0700
commit4ae74fffb939d67424efa3e7f433637f1f920ebc (patch)
tree927afbd8d0330be3f31e6eb03ea2eea8d278ff77
parent39f2a3c6bd501d12a92bfd38434ce67bb5beb70d (diff)
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.
-rw-r--r--ao_task.c2
1 files changed, 1 insertions, 1 deletions
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));
}