rtld-elf: use NULL instead of zero for pointers.
This commit is contained in:
parent
f4a18258b0
commit
a5d5e8dd7c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298285
@ -133,7 +133,7 @@ int _open();
|
||||
void
|
||||
_rtld_relocate_nonplt_self(Elf_Dyn *dynp, Elf_Addr relocbase)
|
||||
{
|
||||
const Elf_Rel *rel = 0, *rellim;
|
||||
const Elf_Rel *rel = NULL, *rellim;
|
||||
Elf_Addr relsz = 0;
|
||||
Elf_Addr *where;
|
||||
uint32_t size;
|
||||
|
@ -141,7 +141,7 @@ store_ptr(void *where, Elf_Sxword val, size_t len)
|
||||
void
|
||||
_rtld_relocate_nonplt_self(Elf_Dyn *dynp, Elf_Addr relocbase)
|
||||
{
|
||||
const Elf_Rel *rel = 0, *rellim;
|
||||
const Elf_Rel *rel = NULL, *rellim;
|
||||
Elf_Addr relsz = 0;
|
||||
const Elf_Sym *symtab = NULL, *sym;
|
||||
Elf_Addr *where;
|
||||
|
@ -126,7 +126,7 @@ do_copy_relocations(Obj_Entry *dstobj)
|
||||
void
|
||||
reloc_non_plt_self(Elf_Dyn *dynp, Elf_Addr relocbase)
|
||||
{
|
||||
const Elf_Rela *rela = 0, *relalim;
|
||||
const Elf_Rela *rela = NULL, *relalim;
|
||||
Elf_Addr relasz = 0;
|
||||
Elf_Addr *where;
|
||||
|
||||
|
@ -122,7 +122,7 @@ do_copy_relocations(Obj_Entry *dstobj)
|
||||
void
|
||||
reloc_non_plt_self(Elf_Dyn *dynp, Elf_Addr relocbase)
|
||||
{
|
||||
const Elf_Rela *rela = 0, *relalim;
|
||||
const Elf_Rela *rela = NULL, *relalim;
|
||||
Elf_Addr relasz = 0;
|
||||
Elf_Addr *where;
|
||||
|
||||
|
@ -519,7 +519,7 @@ _rtld(Elf_Addr *sp, func_ptr_type *exit_proc, Obj_Entry **objp)
|
||||
rtld_die();
|
||||
}
|
||||
|
||||
if (aux_info[AT_EXECPATH] != 0) {
|
||||
if (aux_info[AT_EXECPATH] != NULL) {
|
||||
char *kexecpath;
|
||||
char buf[MAXPATHLEN];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user