Page MenuHomeFreeBSD

mv: More style nits.
ClosedPublic

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