diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-05-16 12:50:48 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-06-07 06:46:51 +0300 |
commit | cbc3dd997eb90d629d1b9912b7a5a40eb82343df (patch) | |
tree | 822b55186ac52c127a686d2d828c15518be20186 /src/tcp_wrap.cc | |
parent | 75e91659887012f743aa4487d6d4ce3d765c028a (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/tcp_wrap.cc')
-rw-r--r-- | src/tcp_wrap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc index 8200353b17b..01c7d253e66 100644 --- a/src/tcp_wrap.cc +++ b/src/tcp_wrap.cc @@ -341,8 +341,8 @@ Local<Object> AddressToJS(Environment* env, Local<Object> info) { EscapableHandleScope scope(env->isolate()); char ip[INET6_ADDRSTRLEN]; - const sockaddr_in *a4; - const sockaddr_in6 *a6; + const sockaddr_in* a4; + const sockaddr_in6* a6; int port; if (info.IsEmpty()) |