RTEMS | timespec.h, etc.: Eliminate use of 32-bit for time_t (!175)

Joel Sherrill (@joel) gitlab at rtems.org
Wed Aug 7 22:01:06 UTC 2024



Joel Sherrill created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/175

Project:Branches: joel/rtems:timespec_add_to_32-bit_time to rtems/rtos/rtems:main
Author:   Joel Sherrill
Assignee: Joel Sherrill



## Summary

timespec.h, etc.: Eliminate use of 32-bit for time_t

This code had a uint32_t local variable for seconds from a timespec.
This was assigning a time_t to a uint32_t and ultimately returning it.
This propgated to rtems_timespec_add_to().

Coverity CID 1512527

Closes #5107.


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/175
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240807/5447f690/attachment-0001.htm>


More information about the bugs mailing list