Author: pfg
Date: Tue Apr 19 19:03:55 2016
New Revision: 298285
URL: https://svnweb.freebsd.org/changeset/base/298285
Log:
rtld-elf: use NULL instead of zero for pointers.
Modified:
head/libexec/rtld-elf/arm/reloc.c
head/libexec/rtld-elf/mips/reloc.c
head/libexec/rtld-elf/powerpc/reloc.c
head/libexec/rtld-elf/powerpc64/reloc.c
head/libexec/rtld-elf/rtld.c
Modified: head/libexec/rtld-elf/arm/reloc.c
==============================================================================
--- head/libexec/rtld-elf/arm/reloc.c Tue Apr 19 19:03:06 2016
(r298284)
+++ head/libexec/rtld-elf/arm/reloc.c Tue Apr 19 19:03:55 2016
(r298285)
@@ -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;
Modified: head/libexec/rtld-elf/mips/reloc.c
==============================================================================
--- head/libexec/rtld-elf/mips/reloc.c Tue Apr 19 19:03:06 2016
(r298284)
+++ head/libexec/rtld-elf/mips/reloc.c Tue Apr 19 19:03:55 2016
(r298285)
@@ -141,7 +141,7 @@ store_ptr(void *where, Elf_Sxword val, s
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;
Modified: head/libexec/rtld-elf/powerpc/reloc.c
==============================================================================
--- head/libexec/rtld-elf/powerpc/reloc.c Tue Apr 19 19:03:06 2016
(r298284)
+++ head/libexec/rtld-elf/powerpc/reloc.c Tue Apr 19 19:03:55 2016
(r298285)
@@ -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;
Modified: head/libexec/rtld-elf/powerpc64/reloc.c
==============================================================================
--- head/libexec/rtld-elf/powerpc64/reloc.c Tue Apr 19 19:03:06 2016
(r298284)
+++ head/libexec/rtld-elf/powerpc64/reloc.c Tue Apr 19 19:03:55 2016
(r298285)
@@ -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;
Modified: head/libexec/rtld-elf/rtld.c
==============================================================================
--- head/libexec/rtld-elf/rtld.c Tue Apr 19 19:03:06 2016
(r298284)
+++ head/libexec/rtld-elf/rtld.c Tue Apr 19 19:03:55 2016
(r298285)
@@ -519,7 +519,7 @@ _rtld(Elf_Addr *sp, func_ptr_type *exit_
rtld_die();
}
- if (aux_info[AT_EXECPATH] != 0) {
+ if (aux_info[AT_EXECPATH] != NULL) {
char *kexecpath;
char buf[MAXPATHLEN];
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"