diff options
author | Keith Packard <keithp@keithp.com> | 2009-04-29 17:46:36 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-04-29 17:46:36 -0700 |
commit | 4ae74fffb939d67424efa3e7f433637f1f920ebc (patch) | |
tree | 927afbd8d0330be3f31e6eb03ea2eea8d278ff77 /ao_task.c | |
parent | 39f2a3c6bd501d12a92bfd38434ce67bb5beb70d (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.
Diffstat (limited to 'ao_task.c')
-rw-r--r-- | ao_task.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); } |