Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/lib/libdtrace/common Only declare '...
details: https://anonhg.NetBSD.org/src/rev/ce36be727221
branches: trunk
changeset: 340787:ce36be727221
user: riz <riz%NetBSD.org@localhost>
date: Thu Oct 01 19:45:37 2015 +0000
description:
Only declare 'ldn' where it's actually used. Fixes build on arm
with MKDTRACE=yes.
diffstat:
external/cddl/osnet/dist/lib/libdtrace/common/dt_printf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r c44a607e0f7c -r ce36be727221 external/cddl/osnet/dist/lib/libdtrace/common/dt_printf.c
--- a/external/cddl/osnet/dist/lib/libdtrace/common/dt_printf.c Wed Sep 30 22:58:02 2015 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/dt_printf.c Thu Oct 01 19:45:37 2015 +0000
@@ -301,7 +301,6 @@
const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
{
double n = (double)normal;
- long double ldn = (long double)normal;
switch (size) {
case sizeof (float):
@@ -312,6 +311,7 @@
*((double *)addr) / n));
#if !defined(__arm__) && !defined(__powerpc__) && !defined(__mips__)
case sizeof (long double):
+ long double ldn = (long double)normal;
return (dt_printf(dtp, fp, format,
*((long double *)addr) / ldn));
#endif
Home |
Main Index |
Thread Index |
Old Index