src: fix runtime/int cpplint warnings · nodejs/node@be0c575 · GitHub
Skip to content

Commit be0c575

Browse files
bnoordhuisFishrock123
authored andcommitted
src: fix runtime/int cpplint warnings
PR-URL: #7462 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent 88c5183 commit be0c575

4 files changed

Lines changed: 29 additions & 29 deletions

File tree

src/node_crypto.cc

Lines changed: 23 additions & 25 deletions

src/node_crypto_bio.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,10 @@ int NodeBIO::Gets(BIO* bio, char* out, int size) {
164164
}
165165

166166

167-
long NodeBIO::Ctrl(BIO* bio, int cmd, long num, void* ptr) {
167+
long NodeBIO::Ctrl(BIO* bio, int cmd, long num, // NOLINT(runtime/int)
168+
void* ptr) {
168169
NodeBIO* nbio;
169-
long ret;
170+
long ret; // NOLINT(runtime/int)
170171

171172
nbio = FromBIO(bio);
172173
ret = 1;

src/node_crypto_bio.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ class NodeBIO {
9191
static int Write(BIO* bio, const char* data, int len);
9292
static int Puts(BIO* bio, const char* str);
9393
static int Gets(BIO* bio, char* out, int size);
94-
static long Ctrl(BIO* bio, int cmd, long num, void* ptr);
94+
static long Ctrl(BIO* bio, int cmd, long num, // NOLINT(runtime/int)
95+
void* ptr);
9596

9697
// Enough to handle the most of the client hellos
9798
static const size_t kInitialBufferLength = 1024;

src/tls_wrap.cc

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)