Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: make totalLen snake case
For consistency, use snake case (total_len) for the local totalLen
variable.
  • Loading branch information
danbev committed Aug 11, 2017
commit 5ed8a35cb5926ce846d4f3123db5c2c492da91bb
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