Page MenuHomeFreeBSD

Alternate solution to D10462
ClosedPublic

Authored by dim on Apr 24 2017, 7:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 3 2025, 6:33 PM
Unknown Object (File)
Nov 30 2025, 11:47 AM
Unknown Object (File)
Nov 28 2025, 9:15 PM
Unknown Object (File)
Oct 26 2025, 9:45 AM
Unknown Object (File)
Oct 26 2025, 9:45 AM
Unknown Object (File)
Oct 26 2025, 9:45 AM
Unknown Object (File)
Oct 26 2025, 3:09 AM
Unknown Object (File)
Oct 22 2025, 12:44 AM
Subscribers

Details

Summary

In D10462, I swapped the test around to get rid of gcc 4.2's warning
about usr.bin/diff/diffreg.c. However, @brooks noted similarly to
what I said there, that re-using i is pretty confusing.

So here's another approach: store the return value from fetch() in a
dedicated variable f, and initialize it to zero before the if.

Diff Detail