diff options
author | Craig Silverstein <csilvers@khanacademy.org> | 2008-05-20 06:13:28 +0000 |
---|---|---|
committer | Craig Silverstein <csilvers@khanacademy.org> | 2008-05-20 06:13:28 +0000 |
commit | 41b794c77d881e29b260d5fccd14293af499b768 (patch) | |
tree | 4883b724529a1f64b45cb666e3f3764a945bfb5a /src/traceenv.c | |
parent | 48fff1e2284aed7ea44eb6ac23b00166c1225038 (diff) | |
download | distcc-git-41b794c77d881e29b260d5fccd14293af499b768.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
Diffstat (limited to 'src/traceenv.c')
-rw-r--r-- | src/traceenv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/traceenv.c b/src/traceenv.c index 8ceb219..49bf79a 100644 --- a/src/traceenv.c +++ b/src/traceenv.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 @@ -63,7 +63,7 @@ void dcc_set_trace_from_env(void) if ((logfile = getenv("DISTCC_LOG")) && logfile[0]) { fd = open(logfile, O_WRONLY|O_APPEND|O_CREAT, 0666); if (fd != -1) { - /* asked for a file, and we can open that file: + /* asked for a file, and we can open that file: include info messages */ level = RS_LOG_INFO; } else { @@ -71,7 +71,7 @@ void dcc_set_trace_from_env(void) fd = STDERR_FILENO; save_errno = errno; failed_to_open_logfile = 1; - } + } } else { /* not asked for file */ if ((logfd_name = getenv("UNCACHED_ERR_FD")) == NULL || |