[Ltrace-devel] [PATCH] fix variable type in sym2addr
Olaf Hering
olh at suse.de
Thu Sep 14 10:02:06 UTC 2006
plt.c: In function 'sym2addr':
plt.c:15: warning: initialization makes integer from pointer without a cast
plt.c:21: warning: return makes pointer from integer without a cast
plt.c:52: warning: right shift count >= width of type
plt.c:52: warning: assignment makes integer from pointer without a cast
plt.c:54: warning: assignment makes integer from pointer without a cast
plt.c:57: warning: return makes pointer from integer without a cast
---
sysdeps/linux-gnu/ppc/plt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: ltrace-0.4/sysdeps/linux-gnu/ppc/plt.c
===================================================================
--- ltrace-0.4.orig/sysdeps/linux-gnu/ppc/plt.c
+++ ltrace-0.4/sysdeps/linux-gnu/ppc/plt.c
@@ -12,7 +12,7 @@ GElf_Addr arch_plt_sym_val(struct ltelf
void *sym2addr(struct process *proc, struct library_symbol *sym)
{
- long addr = sym->enter_addr;
+ void *addr = sym->enter_addr;
long pt_ret;
debug(3, 0);
More information about the Ltrace-devel
mailing list