Page MenuHomeFreeBSD

mv: More style nits.
ClosedPublic

Authored by des on Nov 14 2024, 11:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 6, 4:24 AM
Unknown Object (File)
Thu, Nov 27, 4:48 AM
Unknown Object (File)
Tue, Nov 25, 6:25 PM
Unknown Object (File)
Nov 4 2025, 9:53 AM
Unknown Object (File)
Nov 4 2025, 5:51 AM
Unknown Object (File)
Oct 29 2025, 2:28 AM
Unknown Object (File)
Oct 25 2025, 5:51 AM
Unknown Object (File)
Oct 23 2025, 10:58 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.