Page MenuHomeFreeBSD

More style(9) fixes.
ClosedPublic

Authored by araujo on Aug 10 2015, 6:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 21, 2:53 AM
Unknown Object (File)
Fri, Nov 21, 2:35 AM
Unknown Object (File)
Fri, Nov 21, 2:34 AM
Unknown Object (File)
Fri, Nov 21, 2:33 AM
Unknown Object (File)
Sat, Nov 8, 11:44 AM
Unknown Object (File)
Mon, Nov 3, 3:56 AM
Unknown Object (File)
Fri, Oct 31, 4:14 AM
Unknown Object (File)
Jul 26 2025, 1:47 PM
Subscribers

Details

Summary

ed@ and bde@ pointed out some format issues after I synced the
code with the OpenBSD version. Those are cosmetic changes and
besides the style(9), doesn't change the functionalities.

I sent an email to src-committers where I copy'ed bde@ and ed@
with this patch.

Diff Detail

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

Event Timeline

araujo retitled this revision from to More style(9) fixes..
araujo updated this object.
araujo edited the test plan for this revision. (Show Details)
araujo added reviewers: bapt, rodrigc.
ed edited edge metadata.

Hi Marcelo,

This change looks good to me, though there are some small additional things that could be improved. Be sure to process those and commit this. Thanks for working on this!

Ed

usr.bin/ypmatch/ypmatch.c
87 ↗(On Diff #7810)

style(9) also discourages the use of sizeof n. sizeof(n) should be used instead. We also have the nitems() macro in sys/param.h. Could you change this to the following?

for (i = 0; i < nitems(ypaliases); i++)
105 ↗(On Diff #7810)

This should be written as follows:

if (argc - optind < 2)
113 ↗(On Diff #7810)

Idem.

This revision is now accepted and ready to land.Aug 10 2015, 7:31 AM
bapt edited edge metadata.
This revision was automatically updated to reflect the committed changes.