diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-19 14:39:39 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-19 14:39:39 +0000 |
commit | 999de9be6097e28a8ca700d51719bb8825f5fa6a (patch) | |
tree | cf3dbe671705a7c01b514fa84a1912ce14db5ecc /cpukit/libmisc/shell/hexdump-odsyntax.c | |
parent | 2009-11-19 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-999de9be6097e28a8ca700d51719bb8825f5fa6a.tar.bz2 |
2009-11-19 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/hexdump-odsyntax.c: Remove special casing
the h8300, avr, sh2e.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libmisc/shell/hexdump-odsyntax.c | 20 |
1 files changed, 7 insertions, 13 deletions
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\"", |