Module Name:    src
Committed By:   joerg
Date:           Tue Aug 26 21:20:05 UTC 2014

Modified Files:
        src/libexec/ld.elf_so: headers.c

Log Message:
Restore parenthesis to cast in the right order.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/libexec/ld.elf_so/headers.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/ld.elf_so/headers.c
diff -u src/libexec/ld.elf_so/headers.c:1.58 src/libexec/ld.elf_so/headers.c:1.59
--- src/libexec/ld.elf_so/headers.c:1.58	Tue Aug 26 15:06:50 2014
+++ src/libexec/ld.elf_so/headers.c	Tue Aug 26 21:20:05 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: headers.c,v 1.58 2014/08/26 15:06:50 christos Exp $	 */
+/*	$NetBSD: headers.c,v 1.59 2014/08/26 21:20:05 joerg Exp $	 */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: headers.c,v 1.58 2014/08/26 15:06:50 christos Exp $");
+__RCSID("$NetBSD: headers.c,v 1.59 2014/08/26 21:20:05 joerg Exp $");
 #endif /* not lint */
 
 #include <err.h>
@@ -236,7 +236,8 @@ _rtld_digest_dynamic(const char *execnam
 
 #ifdef HAVE_INITFINI_ARRAY
 		case DT_INIT_ARRAY:
-			obj->init_array = (Elf_Addr *)obj->relocbase + dynp->d_un.d_ptr;
+			obj->init_array =
+			    (Elf_Addr *)(obj->relocbase + dynp->d_un.d_ptr);
 			dbg(("headers: DT_INIT_ARRAY at %p",
 			    obj->init_array));
 			break;

Reply via email to