diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2020-02-04 15:52:39 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-02-07 23:49:19 +0100 |
commit | 3271c40ab102841735aa55f6489fe9df2cd47fcc (patch) | |
tree | 3684cc602102e1b1b731a57ea55593c28377c973 /src/node_internals.h | |
parent | d394dd78de600e89ceea02b3582435e50f249aa4 (diff) | |
download | node-new-3271c40ab102841735aa55f6489fe9df2cd47fcc.tar.gz |
src: remove fixed-size GetHumanReadableProcessName
Remove the version of GetHumanReadableProcessName() that operates on a
fixed-size buffer.
The only remaining caller is Assert() which might get called in contexts
where dynamically allocating memory isn't possible but as Assert() calls
printf(), which also allocates memory when necessary, this commit is
unlikely to make matters much worse.
PR-URL: https://github.com/nodejs/node/pull/31633
Fixes: https://github.com/nodejs/node/issues/31631
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index abe01e6fed..64b4d489e1 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -97,7 +97,6 @@ void SignalExit(int signal, siginfo_t* info, void* ucontext); std::string GetProcessTitle(const char* default_title); std::string GetHumanReadableProcessName(); -void GetHumanReadableProcessName(char (*name)[1024]); void InitializeContextRuntime(v8::Local<v8::Context>); |