svn commit: r232859 - head/libexec/rtld-elf

Dimitry Andric dim at FreeBSD.org
Mon Mar 12 11:22:24 UTC 2012


Author: dim
Date: Mon Mar 12 11:22:23 2012
New Revision: 232859
URL: http://svn.freebsd.org/changeset/base/232859

Log:
  Amend r232857, now dropping the casts entirely, as they were not
  necessary at all.
  
  Submitted by:	stefanf

Modified:
  head/libexec/rtld-elf/rtld.c

Modified: head/libexec/rtld-elf/rtld.c
==============================================================================
--- head/libexec/rtld-elf/rtld.c	Mon Mar 12 11:15:44 2012	(r232858)
+++ head/libexec/rtld-elf/rtld.c	Mon Mar 12 11:22:23 2012	(r232859)
@@ -1895,7 +1895,7 @@ preinit_main(void)
     int index;
 
     preinit_addr = (Elf_Addr *)obj_main->preinit_array;
-    if (preinit_addr == (Elf_Addr *)NULL)
+    if (preinit_addr == NULL)
 	return;
 
     for (index = 0; index < obj_main->preinit_array_num; index++) {
@@ -2036,7 +2036,7 @@ objlist_call_init(Objlist *list, RtldLoc
 	    call_initfini_pointer(elm->obj, elm->obj->init);
 	}
 	init_addr = (Elf_Addr *)elm->obj->init_array;
-	if (init_addr != (Elf_Addr *)NULL) {
+	if (init_addr != NULL) {
 	    for (index = 0; index < elm->obj->init_array_num; index++) {
 		if (init_addr[index] != 0 && init_addr[index] != 1) {
 		    dbg("calling init function for %s at %p", elm->obj->path,


More information about the svn-src-all mailing list