[rtems-libbsd commit] Fix tvtohz() return value

Sebastian Huber sebh at rtems.org
Mon Nov 11 09:02:12 UTC 2013


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Nov  6 14:36:07 2013 +0100

Fix tvtohz() return value

---

 rtemsbsd/rtems/rtems-bsd-timesupport.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rtemsbsd/rtems/rtems-bsd-timesupport.c b/rtemsbsd/rtems/rtems-bsd-timesupport.c
index a7eedee..ef14d1f 100644
--- a/rtemsbsd/rtems/rtems-bsd-timesupport.c
+++ b/rtemsbsd/rtems/rtems-bsd-timesupport.c
@@ -50,5 +50,5 @@ tvtohz(struct timeval *tv)
   ts.tv_sec = tv->tv_sec;
   ts.tv_nsec = tv->tv_usec * 1000;
 
-  (int) _Timespec_To_ticks( &ts );
+  return (int) _Timespec_To_ticks( &ts );
 }




More information about the vc mailing list