-
-
Notifications
You must be signed in to change notification settings - Fork 11k
Standardize syntax of sizeof(foo) #4876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
apps/vms_term_sock.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you're at it, why not remove space prior &sin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's more space cleanup to do in that particular file. Might almost be worth a PR of its own...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, that's what I already suggested in #4875 :-)
apps/vms_term_sock.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above...
crypto/ec/ec_mult.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jagged comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed this the same way I did in master (put it on previous line) and pushed and updated commit. I tend to do "feature-creep" PR's and @levitte tends to call me out on them, so this is just fixing sizeof syntax.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You killing me, man. You know I don't have no magic coin, so with no separate fixup commit I have to start over...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try to do better in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually didn't catch that in master, sorry.
I agree that the indentation should be corrected... and maybe you and I should talk, 'cause it seems we have different ideas of what constitutes "feature creep"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I generally agree with levitte about feature creep, with the justification that for this sort of sweeping change, it may actually be easier to review by having an independent implementation of the change and comparing the implementations -- the human eye tires too easily looking at a long stream of "the same" change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indentation in master is fixed, the same way fixed here, by putting the entire comment on the line above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As for the "feature creep" comment, I was trying more for lighthearted self-deprecation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, ok... sorry, tired day today, didn't catch the lightheartedness (obviously)
test/exptest.c
Outdated
| RAND_seed(rnd_seed, sizeof rnd_seed); /* or BN_rand may fail, and we | ||
| RAND_seed(rnd_seed, sizeof(rnd_seed)); /* or BN_rand may fail, and we | ||
| * don't even check its return | ||
| * value (which we should) */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did refer to it in #4875...
|
additional commit pushed, to be squashed, that fixes the comment that i missed. |
dot-asm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no reason to believe that CI would fail, hence approved.
Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from #4876)
|
Thanks! |
This is #4872 for 1.1.0