Skip to content

Commit

Permalink
test: make totalLen snake case
Browse files Browse the repository at this point in the history
For consistency, use snake case (total_len) for the local totalLen
variable.

PR-URL: #14765
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Alexey Orlenko <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
  • Loading branch information
danbev authored and addaleax committed Aug 12, 2017
1 parent 029567a commit 7eb9f6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/cctest/node_test_fixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ struct Argv {

Argv(const std::initializer_list<const char*> &args) {
nr_args_ = args.size();
int totalLen = 0;
int total_len = 0;
for (auto it = args.begin(); it != args.end(); ++it) {
totalLen += strlen(*it) + 1;
total_len += strlen(*it) + 1;
}
argv_ = static_cast<char**>(malloc(nr_args_ * sizeof(char*)));
argv_[0] = static_cast<char*>(malloc(totalLen));
argv_[0] = static_cast<char*>(malloc(total_len));
int i = 0;
int offset = 0;
for (auto it = args.begin(); it != args.end(); ++it, ++i) {
Expand Down

0 comments on commit 7eb9f6f

Please sign in to comment.