Fix a warning. l_name is managed by us and is malloc/free'ed.

It is the userland declaration of l_name that is inconvenient for us.
This commit is contained in:
Peter Wemm 2001-09-10 07:53:04 +00:00
parent e414d9aad7
commit ed6c38886e
2 changed files with 2 additions and 2 deletions

View File

@ -831,7 +831,7 @@ link_elf_unload_file(linker_file_t file)
#ifdef DDB
if (ef->gdb.l_ld) {
GDB_STATE(RT_DELETE);
free((void *)ef->gdb.l_name, M_LINKER);
free((void *)(uintptr_t)ef->gdb.l_name, M_LINKER);
link_elf_delete_gdb(&ef->gdb);
GDB_STATE(RT_CONSISTENT);
}

View File

@ -831,7 +831,7 @@ link_elf_unload_file(linker_file_t file)
#ifdef DDB
if (ef->gdb.l_ld) {
GDB_STATE(RT_DELETE);
free((void *)ef->gdb.l_name, M_LINKER);
free((void *)(uintptr_t)ef->gdb.l_name, M_LINKER);
link_elf_delete_gdb(&ef->gdb);
GDB_STATE(RT_CONSISTENT);
}