summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/intmath.cc2
-rw-r--r--base/intmath.hh2
-rw-r--r--base/res_list.hh2
-rw-r--r--base/trace.hh8
-rw-r--r--cpu/exec_context.hh4
-rw-r--r--cpu/simple_cpu/simple_cpu.cc2
-rw-r--r--test/sized_test.cc6
-rw-r--r--util/tap/tap.cc4
-rw-r--r--util/term/term.c2
9 files changed, 16 insertions, 16 deletions
diff --git a/base/intmath.cc b/base/intmath.cc
index b9a478ba0..2e220aa3b 100644
--- a/base/intmath.cc
+++ b/base/intmath.cc
@@ -47,7 +47,7 @@ PrevPrime(int n)
else if (decr == 1)
decr = 4;
- for(;;) {
+ for (;;) {
if (IsPrime(n))
return n;
n -= decr;
diff --git a/base/intmath.hh b/base/intmath.hh
index ca1cce1e0..7f017a901 100644
--- a/base/intmath.hh
+++ b/base/intmath.hh
@@ -192,7 +192,7 @@ Hex2Int(char c)
if (c >= '0' && c <= '9')
return (c - '0');
- if(c >= 'A' && c <= 'F')
+ if (c >= 'A' && c <= 'F')
return (c - 'A') + 10;
if (c >= 'a' && c <= 'f')
diff --git a/base/res_list.hh b/base/res_list.hh
index ee2ab28a2..c856c1226 100644
--- a/base/res_list.hh
+++ b/base/res_list.hh
@@ -685,7 +685,7 @@ res_list<T>::free_extras(void)
}
p = unused_elements.res_el_ptr();
- for(int i=0; i<to_free; ++i) {
+ for (int i=0; i<to_free; ++i) {
res_element *q = p->next;
delete p;
diff --git a/base/trace.hh b/base/trace.hh
index 528311ca2..805a925a6 100644
--- a/base/trace.hh
+++ b/base/trace.hh
@@ -208,10 +208,10 @@ do { \
#define DTRACE(x) (false)
#define DCOUT(x) if (0) DebugOut()
-#define DPRINTF(x, args...) do {} while(0)
-#define DPRINTFR(args...) do {} while(0)
-#define DPRINTFN(args...) do {} while(0)
-#define DDUMP(x, data, count) do {} while(0)
+#define DPRINTF(x, args...) do {} while (0)
+#define DPRINTFR(args...) do {} while (0)
+#define DPRINTFN(args...) do {} while (0)
+#define DDUMP(x, data, count) do {} while (0)
#endif // TRACING_ON
diff --git a/cpu/exec_context.hh b/cpu/exec_context.hh
index 6964b35b8..ddfc53684 100644
--- a/cpu/exec_context.hh
+++ b/cpu/exec_context.hh
@@ -245,9 +245,9 @@ class ExecContext
// stores (WH64?)
// Unsuccesful Store Conditionals would have returned above,
// and wouldn't fall through
- for(int i = 0; i < system->xcvec.size(); i++){
+ for (int i = 0; i < system->xcvec.size(); i++){
cregs = &system->xcvec[i]->regs.miscRegs;
- if((cregs->lock_addr & ~0xf) == (req->paddr & ~0xf)) {
+ if ((cregs->lock_addr & ~0xf) == (req->paddr & ~0xf)) {
cregs->lock_flag = false;
}
}
diff --git a/cpu/simple_cpu/simple_cpu.cc b/cpu/simple_cpu/simple_cpu.cc
index 8da4b1641..f4fc1b823 100644
--- a/cpu/simple_cpu/simple_cpu.cc
+++ b/cpu/simple_cpu/simple_cpu.cc
@@ -535,7 +535,7 @@ SimpleCPU::tick()
}
uint64_t interrupts = xc->cpu->intr_status();
- for(int i = TheISA::INTLEVEL_EXTERNAL_MIN;
+ for (int i = TheISA::INTLEVEL_EXTERNAL_MIN;
i < TheISA::INTLEVEL_EXTERNAL_MAX; i++) {
if (interrupts & (ULL(1) << i)) {
// See table 4-19 of 21164 hardware reference
diff --git a/test/sized_test.cc b/test/sized_test.cc
index fe52b7a41..d98459409 100644
--- a/test/sized_test.cc
+++ b/test/sized_test.cc
@@ -38,7 +38,7 @@ void print(C &cont)
{
std::cout << std::endl;
std::cout << "Printing " << typeid(cont).name() << std::endl;
- while(!cont.empty()) {
+ while (!cont.empty()) {
std::cout << cont.front() << " ";
cont.pop();
}
@@ -52,11 +52,11 @@ int main(void)
sized<std::queue<int>, sized_drop_policy<std::queue<int> > >
drop_queue(5);
- for(int i = 0; i < 10; ++i) {
+ for (int i = 0; i < 10; ++i) {
error_queue.push(i);
}
- for(int i = 0; i < 3; ++i) {
+ for (int i = 0; i < 3; ++i) {
drop_queue.push(i);
}
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;
}
}