linux_inet_diag: reduce stack usage and simplify
commitedb5542d0d5911d2712321db469c6bddf07e2d21
authorEric Wong <e@80x24.org>
Fri, 17 Mar 2017 23:46:42 +0000 (17 23:46 +0000)
committerEric Wong <e@80x24.org>
Fri, 17 Mar 2017 23:54:47 +0000 (17 23:54 +0000)
treef0ac028f860cefddda630554e4815fbeec907d99
parent8d9f163a159a1366a86ba166142b4f6f3fd38083
linux_inet_diag: reduce stack usage and simplify

getnameinfo is overkill for NI_NUMERICHOST + NI_NUMERICSERV usage,
and has a more complex and error-prone API than using inet_ntop
and snprintf.
ext/raindrops/linux_inet_diag.c