Page MenuHomeFreeBSD

mv: More style nits.
AcceptedPublic

Authored by des on Thu, Nov 14, 11:31 AM.

Details

Reviewers
markj
Group Reviewers
Klara
Summary

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60554
Build 57438: arc lint + arc unit

Event Timeline

des requested review of this revision.Thu, Nov 14, 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.Thu, Nov 14, 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.