RTEMS | testsuites/fstests/*: Use llabs() not abs() on time_t variable (!688)

Joel Sherrill (@joel) gitlab at rtems.org
Fri Aug 22 21:04:43 UTC 2025



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

Project:Branches: joel/rtems:fix-warning-time_t-abs to rtems/rtos/rtems:main
Author:   Joel Sherrill
Assignee: Joel Sherrill



## Summary

testsuites/fstests/*: Use llabs() not abs() on time_t variable

time_t is a 64-bit quanity so using abs() which is for int is not
a good idea since it can lead to truncation.


<!-- 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/688
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/20250822/d1fdca1e/attachment.htm>


More information about the bugs mailing list