Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-05-16 12:50:48 +0300
committerMichaƫl Zasso <targos@protonmail.com>2018-06-13 09:45:04 +0300
commitcbdc1fdf445069a87bf60e8a565541fdb40c3d06 (patch)
treea554e20a77c72c4d0d2969980f93eb1d944cb6fd /src/node_main.cc
parentc400448e85c6de2e5e1c0186ee5cdafd9fbf2caf (diff)
src, tools: add check for left leaning pointers
This commit adds a rule to cpplint to check that pointers in the code base lean to the left and not right, and also fixes the violations reported. PR-URL: https://github.com/nodejs/node/pull/21010 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_main.cc')
-rw-r--r--src/node_main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_main.cc b/src/node_main.cc
index 8907c47ae0e..bea1af7bdde 100644
--- a/src/node_main.cc
+++ b/src/node_main.cc
@@ -27,7 +27,7 @@
#include <VersionHelpers.h>
#include <WinError.h>
-int wmain(int argc, wchar_t *wargv[]) {
+int wmain(int argc, wchar_t* wargv[]) {
if (!IsWindows7OrGreater()) {
fprintf(stderr, "This application is only supported on Windows 7, "
"Windows Server 2008 R2, or higher.");
@@ -91,7 +91,7 @@ namespace node {
extern bool linux_at_secure;
} // namespace node
-int main(int argc, char *argv[]) {
+int main(int argc, char* argv[]) {
#if defined(__POSIX__) && defined(NODE_SHARED_MODE)
// In node::PlatformInit(), we squash all signal handlers for non-shared lib
// build. In order to run test cases against shared lib build, we also need