Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libunwind Add more const to make GCC happy.
details: https://anonhg.NetBSD.org/src/rev/7fec3d9e6278
branches: trunk
changeset: 327600:7fec3d9e6278
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Mar 12 15:31:55 2014 +0000
description:
Add more const to make GCC happy.
diffstat:
sys/lib/libunwind/AddressSpace.hpp | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (47 lines):
diff -r 675edb0abcc2 -r 7fec3d9e6278 sys/lib/libunwind/AddressSpace.hpp
--- a/sys/lib/libunwind/AddressSpace.hpp Wed Mar 12 15:24:08 2014 +0000
+++ b/sys/lib/libunwind/AddressSpace.hpp Wed Mar 12 15:31:55 2014 +0000
@@ -424,8 +424,8 @@
}
static int rangeCmp(void *context, const void *n1_, const void *n2_) {
- LocalAddressSpace::Range *n1 = (LocalAddressSpace::Range *)n1_;
- LocalAddressSpace::Range *n2 = (LocalAddressSpace::Range *)n2_;
+ const LocalAddressSpace::Range *n1 = (const LocalAddressSpace::Range *)n1_;
+ const LocalAddressSpace::Range *n2 = (const LocalAddressSpace::Range *)n2_;
if (n1->first_pc < n2->first_pc)
return -1;
@@ -436,8 +436,8 @@
}
static int rangeCmpKey(void *context, const void *n_, const void *pc_) {
- LocalAddressSpace::Range *n = (LocalAddressSpace::Range *)n_;
- LocalAddressSpace::pint_t *pc = (LocalAddressSpace::pint_t *)pc_;
+ const LocalAddressSpace::Range *n = (const LocalAddressSpace::Range *)n_;
+ const LocalAddressSpace::pint_t *pc = (const LocalAddressSpace::pint_t *)pc_;
if (n->last_pc < *pc)
return -1;
if (n->first_pc > *pc)
@@ -446,8 +446,8 @@
}
static int dsoTableCmp(void *context, const void *n1_, const void *n2_) {
- LocalAddressSpace::Range *n1 = (LocalAddressSpace::Range *)n1_;
- LocalAddressSpace::Range *n2 = (LocalAddressSpace::Range *)n2_;
+ const LocalAddressSpace::Range *n1 = (const LocalAddressSpace::Range *)n1_;
+ const LocalAddressSpace::Range *n2 = (const LocalAddressSpace::Range *)n2_;
if (n1->ehframe_base < n2->ehframe_base)
return -1;
@@ -457,8 +457,8 @@
}
static int dsoTableCmpKey(void *context, const void *n_, const void *ptr_) {
- LocalAddressSpace::Range *n = (LocalAddressSpace::Range *)n_;
- LocalAddressSpace::pint_t *ptr = (LocalAddressSpace::pint_t *)ptr_;
+ const LocalAddressSpace::Range *n = (const LocalAddressSpace::Range *)n_;
+ const LocalAddressSpace::pint_t *ptr = (const LocalAddressSpace::pint_t *)ptr_;
if (n->ehframe_base < *ptr)
return -1;
if (n->ehframe_base > *ptr)
Home |
Main Index |
Thread Index |
Old Index