diff options
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libmisc/shell/hexdump-odsyntax.c | 20 |
2 files changed, 12 insertions, 13 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index e2a1ab3c19..5474f991fe 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,10 @@ 2009-11-19 Ralf Corsépius <ralf.corsepius@rtems.org> + * libmisc/shell/hexdump-odsyntax.c: Remove special casing + the h8300, avr, sh2e. + +2009-11-19 Ralf Corsépius <ralf.corsepius@rtems.org> + * libcsupport/src/malloc_boundary.c: Avoid implicit type cast (https://www.rtems.org/bugzilla/show_bug.cgi?id=1472#c1). diff --git a/cpukit/libmisc/shell/hexdump-odsyntax.c b/cpukit/libmisc/shell/hexdump-odsyntax.c index 65ca5f261e..d80b4cbed9 100644 --- a/cpukit/libmisc/shell/hexdump-odsyntax.c +++ b/cpukit/libmisc/shell/hexdump-odsyntax.c @@ -349,21 +349,15 @@ odformatfp(rtems_shell_hexdump_globals* globals, char fchar __unused, const char fmt = (const char *)end; } } - switch (isize) { - case sizeof(float): + if (isize == sizeof(float) ) { digits = FLT_DIG; - break; -#if !defined(__AVR__) && !defined(__h8300__) && !defined(__SH2E__) - case sizeof(double): + } else if (isize == sizeof(double)) { digits = DBL_DIG; - break; -#endif - default: - if (isize == sizeof(long double)) - digits = LDBL_DIG; - else - errx(exit_jump, 1, "unsupported floating point size %lu", - (u_long)isize); + } else if (isize == sizeof(long double)) { + digits = LDBL_DIG; + } else { + errx(exit_jump, 1, "unsupported floating point size %zu", + isize); } asprintf(&hdfmt, "%lu/%lu \" %%%d.%de \" \"\\n\"", |