Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser const poison is the cure



details:   https://anonhg.NetBSD.org/src/rev/941c6f05e6c9
branches:  trunk
changeset: 782915:941c6f05e6c9
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Nov 26 17:00:54 2012 +0000

description:
const poison is the cure

diffstat:

 lib/librumpuser/rumpuser_dl.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r d80fe7cb3bf7 -r 941c6f05e6c9 lib/librumpuser/rumpuser_dl.c
--- a/lib/librumpuser/rumpuser_dl.c     Mon Nov 26 16:57:25 2012 +0000
+++ b/lib/librumpuser/rumpuser_dl.c     Mon Nov 26 17:00:54 2012 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_dl.c,v 1.8 2012/07/27 09:09:05 pooka Exp $   */
+/*      $NetBSD: rumpuser_dl.c,v 1.9 2012/11/26 17:00:54 pooka Exp $   */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -33,7 +33,7 @@
 #include "rumpuser_port.h"
 
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser_dl.c,v 1.8 2012/07/27 09:09:05 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_dl.c,v 1.9 2012/11/26 17:00:54 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -101,11 +101,11 @@
 #define DYNn_GETMEMBER(base, n, thevar, result)                                \
 do {                                                                   \
        if (eident == ELFCLASS32) {                                     \
-               Elf32_Dyn *dyn = base;                                  \
+               const Elf32_Dyn *dyn = base;                            \
                /*LINTED*/                                              \
                result = dyn[n].thevar;                                 \
        } else {                                                        \
-               Elf64_Dyn *dyn = base;                                  \
+               const Elf64_Dyn *dyn = base;                            \
                /*LINTED*/                                              \
                result = dyn[n].thevar;                                 \
        }                                                               \
@@ -157,7 +157,7 @@
        char *str_base;
        void *syms_base = NULL; /* XXXgcc */
        size_t curstrsize;
-       void *ed_base;
+       const void *ed_base;
        uint64_t ed_tag;
        size_t cursymcount;
        unsigned i;



Home | Main Index | Thread Index | Old Index