Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ld.elf_so Restore parenthesis to cast in the right o...



details:   https://anonhg.NetBSD.org/src/rev/b878accf3c81
branches:  trunk
changeset: 331851:b878accf3c81
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Aug 26 21:20:05 2014 +0000

description:
Restore parenthesis to cast in the right order.

diffstat:

 libexec/ld.elf_so/headers.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 5fd871d7b421 -r b878accf3c81 libexec/ld.elf_so/headers.c
--- a/libexec/ld.elf_so/headers.c       Tue Aug 26 20:33:35 2014 +0000
+++ b/libexec/ld.elf_so/headers.c       Tue Aug 26 21:20:05 2014 +0000
@@ -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 @@
 
 #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;



Home | Main Index | Thread Index | Old Index