Skip to content

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