Page MenuHomeFreeBSD

tee: minor cleanup
AcceptedPublic

Authored by kevans on Tue, Dec 24, 6:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 4, 4:23 PM
Unknown Object (File)
Tue, Dec 31, 5:46 PM
Unknown Object (File)
Thu, Dec 26, 5:18 AM
Unknown Object (File)
Thu, Dec 26, 3:36 AM
Unknown Object (File)
Wed, Dec 25, 8:59 AM
Unknown Object (File)
Wed, Dec 25, 6:44 AM
Subscribers

Details

Reviewers
des
emaste
asomers
ngie
Group Reviewers
tests
Summary

Pull the open flags out of the loop into a local var. They won't be
changing, so this is marginally more readable.

Adds some extra brackets around the loop in preparation for a future
change that may try to fallback to opening the path as a socket if we
get an EOPNOTSUPP.

No functional change.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61322
Build 58206: arc lint + arc unit

Event Timeline

kevans added a parent revision: D48195: tee: add some basic tests.
This revision is now accepted and ready to land.Tue, Dec 24, 10:12 PM

I think the added braces are an improvement even absent the subsequent change.

des added inline comments.
usr.bin/tee/tee.c
64

I would merge the two int lines and the two char * lines.

102

I'd prefer braces around this line.

kevans added inline comments.
usr.bin/tee/tee.c
64

Also re-sorted