Page MenuHomeFreeBSD

Alternate solution to D10462
ClosedPublic

Authored by dim on Apr 24 2017, 7:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 2, 3:41 AM
Unknown Object (File)
Nov 21 2024, 2:31 PM
Unknown Object (File)
Oct 10 2024, 12:53 PM
Unknown Object (File)
Oct 3 2024, 3:14 PM
Unknown Object (File)
Oct 2 2024, 3:20 AM
Unknown Object (File)
Sep 21 2024, 10:32 PM
Unknown Object (File)
Sep 21 2024, 3:08 PM
Unknown Object (File)
Sep 20 2024, 11:19 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable