Skip to content
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

trivial cleanups #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

trivial cleanups #1

wants to merge 3 commits into from

Conversation

zx2c4
Copy link

@zx2c4 zx2c4 commented Nov 19, 2018

Cool project! I'll do a full read through this week, but for now, here are just the most trivial cleanups that didn't involve reading actual code.

Unused variable, signed/unsigned comparison.

Signed-off-by: Jason A. Donenfeld <[email protected]>
clang-analyzer complains about sockaddr_storage being uninitalized, so
we zero that out first. Then, while we're at it, we use the right
constants for getnameinfo output sizes, and note the fact that the null
byte is part of snprintf's calculations.

Signed-off-by: Jason A. Donenfeld <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants