-
-
Notifications
You must be signed in to change notification settings - Fork 11k
Standardize syntax around sizeof(foo) #4875
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.
Same comment as in #4876, but three occurrences here...
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.
If cross-compared to master, it might be more appropriate to dismiss this comment, even in #4876. I mean it's probably more appropriate to address it separately [if at all].
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
test/igetest.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.
This aint right. It's sizeof(v->key), not sizeof(v)->key.
test/igetest.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.
|
I don't want to fix anything other than the sizeof uses here. |
|
Also fixed the "jagged comment" in crypto/ec/ec_mult.c |
crypto/bn/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.
Another jagged comment... Even in #4876...
|
|
||
| if (setsockopt | ||
| (nSocket, SOL_SOCKET, SO_REUSEADDR, (char *)&one, sizeof one) < 0) { | ||
| (nSocket, SOL_SOCKET, SO_REUSEADDR, (char *)&one, sizeof(one)) < 0) { |
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.
That's an incompliant formatting! Side note!
Reformat comment.
|
Added commit to fix the exptest comment-wrapping issue. |
Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from #4875)
|
Thanks for the feedback; merged to 1.0.2 |
This is the #4872 done for 1.0.2