summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-28 14:33:34 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-06-28 14:33:34 +0000
commit170f26aa1788c932bb6715776d8789445b714509 (patch)
treec0fcc55959b44965d9aa828b2e69395b8b561052
parent2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-170f26aa1788c932bb6715776d8789445b714509.tar.bz2
2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/dumpbuf/dumpbuf.c, libmisc/dumpbuf/dumpbuf.h: Add const.
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/libmisc/dumpbuf/dumpbuf.c12
-rw-r--r--cpukit/libmisc/dumpbuf/dumpbuf.h4
3 files changed, 12 insertions, 8 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index b449c5539d..356459a1f5 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * libmisc/dumpbuf/dumpbuf.c, libmisc/dumpbuf/dumpbuf.h: Add const.
+
2010-06-25 Jennifer Averett <Jennifer.Averett@OARcorp.com
* libcsupport/include/rtems/libio.h, libfs/Makefile.am: Added default
diff --git a/cpukit/libmisc/dumpbuf/dumpbuf.c b/cpukit/libmisc/dumpbuf/dumpbuf.c
index 7a99e4e322..97274ecbaa 100644
--- a/cpukit/libmisc/dumpbuf/dumpbuf.c
+++ b/cpukit/libmisc/dumpbuf/dumpbuf.c
@@ -24,13 +24,13 @@
*/
static inline void Dump_Line(
- unsigned char *buffer,
- int length
+ const unsigned char *buffer,
+ int length
);
void rtems_print_buffer(
- unsigned char *buffer,
- int length
+ const unsigned char *buffer,
+ int length
)
{
@@ -50,8 +50,8 @@ void rtems_print_buffer(
}
static inline void Dump_Line(
- unsigned char *buffer,
- int length
+ const unsigned char *buffer,
+ int length
)
{
diff --git a/cpukit/libmisc/dumpbuf/dumpbuf.h b/cpukit/libmisc/dumpbuf/dumpbuf.h
index 9347ce5fa8..3502ace70a 100644
--- a/cpukit/libmisc/dumpbuf/dumpbuf.h
+++ b/cpukit/libmisc/dumpbuf/dumpbuf.h
@@ -27,8 +27,8 @@ extern "C" {
* @param[in] length is the length of the buffer
*/
void rtems_print_buffer(
- unsigned char *buffer,
- int length
+ const unsigned char *buffer,
+ int length
);
#ifdef __cplusplus