rtld-elf: use NULL instead of zero for pointers.

This commit is contained in:
Pedro F. Giffuni 2016-04-19 19:03:55 +00:00
parent f4a18258b0
commit a5d5e8dd7c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298285
5 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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];