summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-10-15 16:39:37 -0400
committerNathan Binkert <binkertn@umich.edu>2003-10-15 16:39:37 -0400
commit8dd080032b5163e7ea1c86e12a7e1e8bad40152a (patch)
tree377b6d7ea1d7d4221ddb00f500112b687c8c0351 /util
parent1e71e6b7481ccc015bd9e3bd8941e2728b3b488c (diff)
downloadgem5-8dd080032b5163e7ea1c86e12a7e1e8bad40152a.tar.xz
Global whitespace fixes
Mainly removing whitespace at the end of lines. This will reduce future diffs/conflicts. Also adding a space after if, while, and for This was all accomplished with: #!/usr/bin/perl -pi~ s/[ ]+$//; # there is a space and a tab in the brackets s/if\(/if (/g; s/for\(/for (/g; s/while\(/while (/g; arch/alpha/alpha_memory.cc: arch/alpha/alpha_memory.hh: arch/alpha/arguments.hh: arch/alpha/ev5.cc: arch/alpha/fake_syscall.cc: arch/alpha/isa_traits.hh: arch/alpha/vtophys.cc: base/cprintf.cc: base/cprintf.hh: base/cprintf_formats.hh: base/dbl_list.hh: base/fast_alloc.cc: base/fast_alloc.hh: base/hybrid_pred.cc: base/hybrid_pred.hh: base/inet.cc: base/inifile.cc: base/intmath.cc: base/intmath.hh: base/misc.cc: base/mod_num.hh: base/pollevent.cc: base/random.cc: base/random.hh: base/range.hh: base/refcnt.hh: base/remote_gdb.cc: base/remote_gdb.hh: base/res_list.hh: base/sat_counter.cc: base/sat_counter.hh: base/sched_list.hh: base/compression/lzss_compression.cc: base/compression/lzss_compression.hh: base/compression/null_compression.hh: base/loader/coff_sym.h: base/loader/coff_symconst.h: base/loader/ecoff_object.cc: base/loader/object_file.cc: base/loader/object_file.hh: base/loader/symtab.cc: base/loader/symtab.hh: base/socket.cc: base/statistics.cc: base/statistics.hh: base/str.cc: base/str.hh: base/trace.cc: base/trace.hh: cpu/base_cpu.cc: cpu/base_cpu.hh: cpu/exec_context.hh: cpu/exetrace.cc: cpu/intr_control.hh: cpu/pc_event.cc: cpu/pc_event.hh: cpu/static_inst.hh: cpu/full_cpu/op_class.hh: cpu/full_cpu/smt.hh: cpu/memtest/memtest.cc: cpu/memtest/memtest.hh: cpu/simple_cpu/simple_cpu.cc: cpu/simple_cpu/simple_cpu.hh: dev/alpha_access.h: dev/alpha_console.cc: dev/alpha_console.hh: dev/console.cc: dev/console.hh: dev/disk_image.cc: dev/disk_image.hh: dev/etherbus.cc: dev/etherdump.cc: dev/etherint.cc: dev/etherlink.cc: dev/etherlink.hh: dev/ethertap.cc: dev/pcireg.h: docs/stl.hh: kern/tru64/dump_mbuf.cc: kern/tru64/printf.cc: kern/tru64/tru64_events.cc: kern/tru64/tru64_system.cc: kern/tru64/tru64_system.hh: sim/debug.cc: sim/eventq.cc: sim/eventq.hh: sim/host.hh: sim/main.cc: sim/param.cc: sim/param.hh: sim/prog.cc: sim/serialize.cc: sim/serialize.hh: sim/sim_events.cc: sim/sim_object.cc: sim/sim_time.cc: sim/sim_time.hh: sim/system.cc: test/bitvectest.cc: test/circletest.cc: test/initest.cc: test/lru_test.cc: test/nmtest.cc: test/offtest.cc: test/sized_test.cc: test/stattest.cc: test/symtest.cc: util/tap/tap.cc: util/term/term.c: formatting fixes --HG-- extra : convert_revision : 01e6dbc9615c5d0e923502b8410a416c0434cdf6
Diffstat (limited to 'util')
-rw-r--r--util/tap/tap.cc4
-rw-r--r--util/term/term.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/util/tap/tap.cc b/util/tap/tap.cc
index 0d94f0b17..9c13051ca 100644
--- a/util/tap/tap.cc
+++ b/util/tap/tap.cc
@@ -207,7 +207,7 @@ main(int argc, char *argv[])
program = basename(argv[0]);
- while((c = getopt(argc, argv, "b:df:lp:v")) != -1) {
+ while ((c = getopt(argc, argv, "b:df:lp:v")) != -1) {
switch (c) {
case 'b':
bufsize = atoi(optarg);
@@ -405,7 +405,7 @@ main(int argc, char *argv[])
delete [] buffer;
pcap_close(pcap);
eth_close(ethernet);
- if(listen_pfd)
+ if (listen_pfd)
close(listen_pfd->fd);
if (client_pfd)
diff --git a/util/term/term.c b/util/term/term.c
index d445b4d37..199b8e973 100644
--- a/util/term/term.c
+++ b/util/term/term.c
@@ -202,7 +202,7 @@ readwrite(int nfd)
continue;
}
- if((ret = atomicio(write, nfd, buf, n)) != n)
+ if ((ret = atomicio(write, nfd, buf, n)) != n)
return;
}
}