[rtems commit] cpukit/score/src/ts64*: Return a value from non-void function

Joel Sherrill joel at rtems.org
Thu Oct 9 15:03:39 UTC 2014


Module:    rtems
Branch:    master
Commit:    c1ed7a3c15285c44a71ba90c6778697c368dea42
Changeset: http://git.rtems.org/rtems/commit/?id=c1ed7a3c15285c44a71ba90c6778697c368dea42

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed Oct  8 09:23:39 2014 -0500

cpukit/score/src/ts64*: Return a value from non-void function

---

 cpukit/score/src/ts64equalto.c        |    2 +-
 cpukit/score/src/ts64getnanoseconds.c |    2 +-
 cpukit/score/src/ts64getseconds.c     |    2 +-
 cpukit/score/src/ts64lessthan.c       |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cpukit/score/src/ts64equalto.c b/cpukit/score/src/ts64equalto.c
index 28c6fa4..fd07474 100644
--- a/cpukit/score/src/ts64equalto.c
+++ b/cpukit/score/src/ts64equalto.c
@@ -26,6 +26,6 @@ bool _Timestamp64_Equal_to(
   const Timestamp64_Control *_rhs
 )
 {
-  _Timestamp64_implementation_Equal_to( _lhs, _rhs );
+  return _Timestamp64_implementation_Equal_to( _lhs, _rhs );
 }
 #endif
diff --git a/cpukit/score/src/ts64getnanoseconds.c b/cpukit/score/src/ts64getnanoseconds.c
index 65a0b62..a5da43b 100644
--- a/cpukit/score/src/ts64getnanoseconds.c
+++ b/cpukit/score/src/ts64getnanoseconds.c
@@ -25,6 +25,6 @@ uint32_t _Timestamp64_Get_nanoseconds(
   const Timestamp64_Control *_time
 )
 {
-  _Timestamp64_implementation_Get_nanoseconds( _time );
+  return _Timestamp64_implementation_Get_nanoseconds( _time );
 }
 #endif
diff --git a/cpukit/score/src/ts64getseconds.c b/cpukit/score/src/ts64getseconds.c
index 0f102bc..eca0536 100644
--- a/cpukit/score/src/ts64getseconds.c
+++ b/cpukit/score/src/ts64getseconds.c
@@ -25,6 +25,6 @@ uint32_t _Timestamp64_Get_seconds(
   const Timestamp64_Control *_time
 )
 {
-  _Timestamp64_implementation_Get_seconds( _time );
+  return _Timestamp64_implementation_Get_seconds( _time );
 }
 #endif
diff --git a/cpukit/score/src/ts64lessthan.c b/cpukit/score/src/ts64lessthan.c
index 5c518c0..d147814 100644
--- a/cpukit/score/src/ts64lessthan.c
+++ b/cpukit/score/src/ts64lessthan.c
@@ -26,6 +26,6 @@ bool _Timestamp64_Less_than(
   const Timestamp64_Control *_rhs
 )
 {
-  _Timestamp64_implementation_Less_than( _lhs, _rhs );
+  return _Timestamp64_implementation_Less_than( _lhs, _rhs );
 }
 #endif



More information about the vc mailing list