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.
This commit is contained in:
Joel Sherrill
2009-05-04 11:09:05 +00:00
parent adada0d33c
commit 9d069960d3
4 changed files with 9 additions and 4 deletions

View File

@@ -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.

View File

@@ -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

View File

@@ -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;

View File

@@ -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;