summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Niklas Hasse <jhasse@bixense.com>2019-04-17 16:04:28 (GMT)
committerJan Niklas Hasse <jhasse@bixense.com>2019-04-17 16:04:54 (GMT)
commit71b96489325e5e2629464687c60f20d9905ab51c (patch)
tree8ab2373f170b346ebd018c8e70ff43699b29f716 /src
parentb344c799788426b3b26eabcbef5728955e8e2703 (diff)
downloadNinja-71b96489325e5e2629464687c60f20d9905ab51c.zip
Ninja-71b96489325e5e2629464687c60f20d9905ab51c.tar.gz
Ninja-71b96489325e5e2629464687c60f20d9905ab51c.tar.bz2
Remove trailing whitespace from all files
Diffstat (limited to 'src')
-rw-r--r--src/clean_test.cc2
-rw-r--r--src/deps_log.cc4
-rw-r--r--src/getopt.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/clean_test.cc b/src/clean_test.cc
index 395343b..63734ac 100644
--- a/src/clean_test.cc
+++ b/src/clean_test.cc
@@ -325,7 +325,7 @@ TEST_F(CleanTest, CleanRsp) {
Cleaner cleaner(&state_, config_, &fs_);
ASSERT_EQ(0, cleaner.cleaned_files_count());
ASSERT_EQ(0, cleaner.CleanTarget("out1"));
- EXPECT_EQ(2, cleaner.cleaned_files_count());
+ EXPECT_EQ(2, cleaner.cleaned_files_count());
ASSERT_EQ(0, cleaner.CleanTarget("in2"));
EXPECT_EQ(2, cleaner.cleaned_files_count());
ASSERT_EQ(0, cleaner.CleanRule("cat_rsp"));
diff --git a/src/deps_log.cc b/src/deps_log.cc
index 0bb96f3..4aaffeb 100644
--- a/src/deps_log.cc
+++ b/src/deps_log.cc
@@ -48,7 +48,7 @@ bool DepsLog::OpenForWrite(const string& path, string* err) {
if (!Recompact(path, err))
return false;
}
-
+
file_ = fopen(path.c_str(), "ab");
if (!file_) {
*err = strerror(errno);
@@ -331,7 +331,7 @@ bool DepsLog::Recompact(const string& path, string* err) {
// will refer to the ordering in new_log, not in the current log.
for (vector<Node*>::iterator i = nodes_.begin(); i != nodes_.end(); ++i)
(*i)->set_id(-1);
-
+
// Write out all deps again.
for (int old_id = 0; old_id < (int)deps_.size(); ++old_id) {
Deps* deps = deps_[old_id];
diff --git a/src/getopt.c b/src/getopt.c
index 0c2ef35..861f07f 100644
--- a/src/getopt.c
+++ b/src/getopt.c
@@ -75,7 +75,7 @@ COPYRIGHT NOTICE AND DISCLAIMER:
Copyright (C) 1997 Gregory Pietsch
-This file and the accompanying getopt.h header file are hereby placed in the
+This file and the accompanying getopt.h header file are hereby placed in the
public domain without restrictions. Just give the author credit, don't
claim you wrote it or prevent anyone else from using it.