Page MenuHomeFreeBSD

mv: More style nits.
ClosedPublic

Authored by des on Nov 14 2024, 11:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 7:25 PM
Unknown Object (File)
Thu, Dec 12, 4:49 PM
Unknown Object (File)
Sun, Dec 8, 10:30 AM
Unknown Object (File)
Thu, Dec 5, 3:56 PM
Unknown Object (File)
Thu, Nov 21, 11:00 PM
Unknown Object (File)
Tue, Nov 19, 10:36 AM
Unknown Object (File)
Mon, Nov 18, 10:20 PM
Unknown Object (File)
Mon, Nov 18, 12:22 PM
Subscribers

Details

Reviewers
markj
Group Reviewers
Klara
Commits
rGdc6105ebedcf: mv: More style nits.
Summary

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Nov 14 2024, 11:31 AM
markj added a subscriber: markj.

Fine with me aside from the one comment.

bin/mv/mv.c
221

style(9) explicitly permits this, and I don't see a good reason to move the declarations.

This revision is now accepted and ready to land.Nov 14 2024, 2:39 PM
bin/mv/mv.c
221

It stuck out as being the only local definition in a file that otherwise declares all its variables at the top of each function. It shouldn't make any difference to the generated code.

bin/mv/mv.c
221

I understand that it won't change any code, I just think it doesn't make sense to move variables to a larger scope for no reason.

Anyway, I don't object to either version.

This revision was automatically updated to reflect the committed changes.