os,report: use UV_MAXHOSTNAMESIZE · nodejs/node@5f6a710 · GitHub
Skip to content

Commit 5f6a710

Browse files
cjihrigaddaleax
authored andcommitted
os,report: use UV_MAXHOSTNAMESIZE
UV_MAXHOSTNAMESIZE was introduced in libuv 1.26.0. Use this instead of including multiple header files, adding fallback ifdef logic, and remembering to add one to the buffer size for the terminating nul character with MAXHOSTNAMELEN. PR-URL: #26038 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 8495a78 commit 5f6a710

2 files changed

Lines changed: 2 additions & 18 deletions

File tree

src/node_os.cc

Lines changed: 1 addition & 8 deletions

src/node_report.cc

Lines changed: 1 addition & 10 deletions

0 commit comments

Comments
 (0)