summaryrefslogtreecommitdiff
path: root/src/backoff.c
diff options
context:
space:
mode:
authorcsilvers <csilvers@01de4be4-8c4a-0410-9132-4925637da917>2008-05-20 06:13:28 +0000
committercsilvers <csilvers@01de4be4-8c4a-0410-9132-4925637da917>2008-05-20 06:13:28 +0000
commit9d7d41c8586d571e6e05a7bbc0b623333f7250ce (patch)
tree4883b724529a1f64b45cb666e3f3764a945bfb5a /src/backoff.c
parenta3f9539b6a2c9ef05898598e02cf4a476579fb8e (diff)
downloaddistcc-9d7d41c8586d571e6e05a7bbc0b623333f7250ce.tar.gz
Turned all tabs into 4 spaces. Got rid of whitespace at the end of
lines. Fixed up resulting mis-indented code I noticed (mostly in files that used 8 space indents, or used 4-space and 8-space indents in the same file (!)). Added the emacs tab-var setting for all files, not just some of them. I also added in copyright notices for files I noticed that didn't have them. We'll want to do another pass-through to fix these up properly, though. I used the following perl snippet to check for mis-indented code after converting tabs to whitespace: $ for i in *.{c,h}; do echo $i; perl -nle 'if ($indent > 0) {$sp=" " x $indent; /^$sp[^ ]/ && print "$.: $_"; $indent=0;}; if (/^( *).*{/ ) {$indent=length($1);} else {$indent=0;}' $i; done | less It had false positives, but hopefully didn't miss anything. Reviewed by klarlund@google.com git-svn-id: http://distcc.googlecode.com/svn/trunk@320 01de4be4-8c4a-0410-9132-4925637da917
Diffstat (limited to 'src/backoff.c')
-rw-r--r--src/backoff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backoff.c b/src/backoff.c
index 4e74775..c2024ba 100644
--- a/src/backoff.c
+++ b/src/backoff.c
@@ -1,5 +1,5 @@
/* -*- c-file-style: "java"; indent-tabs-mode: nil; tab-width: 4 fill-column: 78 -*-
- *
+ *
* distcc -- A simple distributed compiler system
*
* Copyright (C) 2002, 2003 by Martin Pool <mbp@samba.org>
@@ -13,7 +13,7 @@
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
@@ -94,7 +94,7 @@ static int dcc_check_backoff(struct dcc_hostdef *host)
int dcc_remove_disliked(struct dcc_hostdef **hostlist)
{
struct dcc_hostdef *h;
-
+
while ((h = *hostlist) != NULL) {
if (dcc_check_backoff(h) != 0) {
rs_trace("remove %s from list", h->hostdef_string);
@@ -105,6 +105,6 @@ int dcc_remove_disliked(struct dcc_hostdef **hostlist)
hostlist = &h->next;
}
}
-
+
return 0;
}