From 6576c1d7ea057a0477c52f4989fc89e369af4c9a Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 15 Jun 2009 01:02:18 +0000 Subject: [PATCH] 2009-06-15 Chris Johns * libmisc/shell/hexdump-odsyntax.c: AVR has the same size float and double. Fix error in case statement. * libmisc/shell/main_dd.c: Remove sys/conf.h header. It is not available if networking is disabled. --- cpukit/ChangeLog | 7 +++++++ cpukit/libmisc/shell/hexdump-odsyntax.c | 2 ++ cpukit/libmisc/shell/main_dd.c | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index dfda94f35a..20c9d4a3a0 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,10 @@ +2009-06-15 Chris Johns + + * libmisc/shell/hexdump-odsyntax.c: AVR has the same size float + and double. Fix error in case statement. + * libmisc/shell/main_dd.c: Remove sys/conf.h header. It is not + available if networking is disabled. + 2009-06-15 Chris Johns * score/cpu/mips/rtems/mips/idtcpu.h: Remote WAIT define. Horrible diff --git a/cpukit/libmisc/shell/hexdump-odsyntax.c b/cpukit/libmisc/shell/hexdump-odsyntax.c index db67ae53e9..5fba463b5c 100644 --- a/cpukit/libmisc/shell/hexdump-odsyntax.c +++ b/cpukit/libmisc/shell/hexdump-odsyntax.c @@ -353,9 +353,11 @@ odformatfp(rtems_shell_hexdump_globals* globals, char fchar __unused, const char case sizeof(float): digits = FLT_DIG; break; +#if !defined(__AVR__) case sizeof(double): digits = DBL_DIG; break; +#endif default: if (isize == sizeof(long double)) digits = LDBL_DIG; diff --git a/cpukit/libmisc/shell/main_dd.c b/cpukit/libmisc/shell/main_dd.c index 1f08a8373a..98d69811f9 100644 --- a/cpukit/libmisc/shell/main_dd.c +++ b/cpukit/libmisc/shell/main_dd.c @@ -51,8 +51,8 @@ __FBSDID("$FreeBSD: src/bin/dd/dd.c,v 1.43 2004/08/15 19:10:05 rwatson Exp $"); #include #include -#include #if RTEMS_REMOVED +#include #include #endif #include