Page MenuHomeFreeBSD

Alternate solution to D10462
ClosedPublic

Authored by dim on Apr 24 2017, 7:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 22, 5:15 AM
Unknown Object (File)
Fri, Mar 20, 3:29 AM
Unknown Object (File)
Wed, Mar 18, 1:35 PM
Unknown Object (File)
Wed, Mar 18, 1:02 AM
Unknown Object (File)
Tue, Mar 17, 11:57 PM
Unknown Object (File)
Tue, Mar 17, 11:57 PM
Unknown Object (File)
Sun, Mar 15, 10:53 AM
Unknown Object (File)
Sat, Mar 14, 4:23 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