summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-04 11:09:05 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-04 11:09:05 +0000
commit9d069960d39c339ca44a17ba9e1ed1f965cc48f5 (patch)
tree226c8e59d14ec61af1e6e2e646478ea1813516a0 /cpukit
parent2009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-9d069960d39c339ca44a17ba9e1ed1f965cc48f5.tar.bz2
2009-05-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/include/rtems/rtems/clock.h, rtems/src/clocktodtoseconds.c, rtems/src/clocktodvalidate.c: Add const to parameter.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/rtems/include/rtems/rtems/clock.h4
-rw-r--r--cpukit/rtems/src/clocktodtoseconds.c2
-rw-r--r--cpukit/rtems/src/clocktodvalidate.c2
4 files changed, 9 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index cccbec6bd5..64f195db5c 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-04 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * rtems/include/rtems/rtems/clock.h, rtems/src/clocktodtoseconds.c,
+ rtems/src/clocktodvalidate.c: Add const to parameter.
+
2009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shell.c, libmisc/stackchk/check.c: Eliminate warnings.
diff --git a/cpukit/rtems/include/rtems/rtems/clock.h b/cpukit/rtems/include/rtems/rtems/clock.h
index ef1b98edb1..e638acc030 100644
--- a/cpukit/rtems/include/rtems/rtems/clock.h
+++ b/cpukit/rtems/include/rtems/rtems/clock.h
@@ -248,7 +248,7 @@ rtems_status_code rtems_clock_get_uptime(
* @return This method returns true if the TOD is valid and false otherwise.
*/
bool _TOD_Validate(
- rtems_time_of_day *the_tod
+ const rtems_time_of_day *the_tod
);
/**
@@ -262,7 +262,7 @@ bool _TOD_Validate(
* by @a the_tod
*/
Watchdog_Interval _TOD_To_seconds(
- rtems_time_of_day *the_tod
+ const rtems_time_of_day *the_tod
);
#ifdef __cplusplus
diff --git a/cpukit/rtems/src/clocktodtoseconds.c b/cpukit/rtems/src/clocktodtoseconds.c
index f9ec18b4c3..c5093e180d 100644
--- a/cpukit/rtems/src/clocktodtoseconds.c
+++ b/cpukit/rtems/src/clocktodtoseconds.c
@@ -53,7 +53,7 @@ const uint16_t _TOD_Days_since_last_leap_year[4] = { 0, 366, 731, 1096 };
*/
uint32_t _TOD_To_seconds(
- rtems_time_of_day *the_tod
+ const rtems_time_of_day *the_tod
)
{
uint32_t time;
diff --git a/cpukit/rtems/src/clocktodvalidate.c b/cpukit/rtems/src/clocktodvalidate.c
index 9ea5f01f9d..6d0bf45be7 100644
--- a/cpukit/rtems/src/clocktodvalidate.c
+++ b/cpukit/rtems/src/clocktodvalidate.c
@@ -48,7 +48,7 @@ const uint32_t _TOD_Days_per_month[ 2 ][ 13 ] = {
*/
bool _TOD_Validate(
- rtems_time_of_day *the_tod
+ const rtems_time_of_day *the_tod
)
{
uint32_t days_in_month;