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
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-06-07 06:46:51 +0300
commitcbc3dd997eb90d629d1b9912b7a5a40eb82343df (patch)
tree822b55186ac52c127a686d2d828c15518be20186 /src/node_main.cc
parent75e91659887012f743aa4487d6d4ce3d765c028a (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