Page MenuHomeFreeBSD

usr.sbin/ndp/ndp.c: Fix style(9)
ClosedPublic

Authored by garga on Feb 9 2017, 12:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 6:53 PM
Unknown Object (File)
Mar 22 2024, 8:33 PM
Unknown Object (File)
Mar 22 2024, 8:33 PM
Unknown Object (File)
Mar 22 2024, 8:32 PM
Unknown Object (File)
Mar 22 2024, 8:32 PM
Unknown Object (File)
Mar 22 2024, 8:32 PM
Unknown Object (File)
Mar 8 2024, 2:44 PM
Unknown Object (File)
Feb 7 2024, 4:22 AM
Subscribers

Details

Summary

Fix style(9) on usr.sbin/ndp/ndp.c

Diff Detail

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

Event Timeline

garga retitled this revision from to usr.sbin/ndp/ndp.c: Fix style(9).
garga updated this object.
garga edited the test plan for this revision. (Show Details)
garga added a reviewer: allanjude.
pstef added inline comments.
usr.sbin/ndp/ndp.c
941 ↗(On Diff #24914)

No tab.

Add missing TAB

usr.sbin/ndp/ndp.c
941 ↗(On Diff #24914)

Fixed

usr.sbin/ndp/ndp.c
148 ↗(On Diff #24946)

I appreciate your fervent interest in improving the code's style(9). However, nearly all of the new endif comments are actually against the style:

This comment should be used only for (subjectively) long regions, regions
greater than 20 lines, or where a series of nested #ifdef 's may be
confusing to the reader.

For short conditionally compiled
regions, a closing comment should not be used.

usr.sbin/ndp/ndp.c
148 ↗(On Diff #24946)

I'm starting to add libxo support on some binaries then I decided to read the code before touch and then fix style on them. Of course I've missed the 20 lines rule and I'll update the patch soon.

Thanks

Remove wrong comments nearly endif for short blocks

vangyzen edited edge metadata.
This revision is now accepted and ready to land.Feb 14 2017, 5:29 PM
allanjude edited edge metadata.

Approved By: allanjude

This revision was automatically updated to reflect the committed changes.