forked from Imagelibrary/rtems
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:
@@ -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>
|
2009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* libmisc/shell/shell.c, libmisc/stackchk/check.c: Eliminate warnings.
|
* libmisc/shell/shell.c, libmisc/stackchk/check.c: Eliminate warnings.
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ rtems_status_code rtems_clock_get_uptime(
|
|||||||
* @return This method returns true if the TOD is valid and false otherwise.
|
* @return This method returns true if the TOD is valid and false otherwise.
|
||||||
*/
|
*/
|
||||||
bool _TOD_Validate(
|
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
|
* by @a the_tod
|
||||||
*/
|
*/
|
||||||
Watchdog_Interval _TOD_To_seconds(
|
Watchdog_Interval _TOD_To_seconds(
|
||||||
rtems_time_of_day *the_tod
|
const rtems_time_of_day *the_tod
|
||||||
);
|
);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ const uint16_t _TOD_Days_since_last_leap_year[4] = { 0, 366, 731, 1096 };
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
uint32_t _TOD_To_seconds(
|
uint32_t _TOD_To_seconds(
|
||||||
rtems_time_of_day *the_tod
|
const rtems_time_of_day *the_tod
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
uint32_t time;
|
uint32_t time;
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ const uint32_t _TOD_Days_per_month[ 2 ][ 13 ] = {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
bool _TOD_Validate(
|
bool _TOD_Validate(
|
||||||
rtems_time_of_day *the_tod
|
const rtems_time_of_day *the_tod
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
uint32_t days_in_month;
|
uint32_t days_in_month;
|
||||||
|
|||||||
Reference in New Issue
Block a user