Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix timeout calculations in iphb_wait2()
The timeout handling in iphb_wait2() mixes signed and unsigned integers which causes warnings after enabling -Wextra diagnostics. Eliminate numeric overflows due to signed/unsigned to a reasonable extent. Refactor the code to use single exit point and make sure that all error return paths also set the errno to something relevant. Add comments that hopefully clarify what the function is doing. [libiphb] Fix timeout calculations in iphb_wait2(). Fixes MER#1005
- Loading branch information
Showing
1 changed file
with
93 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters