aboutsummaryrefslogtreecommitdiff
path: root/sim/common/hw-base.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-05-11 20:02:42 +0000
committerMike Frysinger <vapier@gentoo.org>2011-05-11 20:02:42 +0000
commit34b47c3828ca8e6d9dcddb2886744fb470e4276c (patch)
treec6e8881cf59afd20bc6090bb7a2416c0ec1fd1cd /sim/common/hw-base.c
parent1f84b6196ba7218766be02547881a5c2165be3ae (diff)
downloadfsf-binutils-gdb-34b47c3828ca8e6d9dcddb2886744fb470e4276c.zip
fsf-binutils-gdb-34b47c3828ca8e6d9dcddb2886744fb470e4276c.tar.gz
fsf-binutils-gdb-34b47c3828ca8e6d9dcddb2886744fb470e4276c.tar.bz2
sim: fix func call style (space before paren)
Committed this as obvious: -foo(...); +foo (...); Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/common/hw-base.c')
-rw-r--r--sim/common/hw-base.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sim/common/hw-base.c b/sim/common/hw-base.c
index 88e493e..97e92c8 100644
--- a/sim/common/hw-base.c
+++ b/sim/common/hw-base.c
@@ -114,13 +114,13 @@ generic_hw_unit_encode (struct hw *bus,
/* don't output anything if empty */
if (phys->nr_cells == 0)
{
- strcpy(pos, "");
+ strcpy (pos, "");
len = 0;
}
else if (i == phys->nr_cells)
{
/* all zero */
- strcpy(pos, "0");
+ strcpy (pos, "0");
len = 1;
}
else
@@ -129,14 +129,14 @@ generic_hw_unit_encode (struct hw *bus,
{
if (pos != buf)
{
- strcat(pos, ",");
- pos = strchr(pos, '\0');
+ strcat (pos, ",");
+ pos = strchr (pos, '\0');
}
if (phys->cells[i] < 10)
sprintf (pos, "%ld", (unsigned long)phys->cells[i]);
else
sprintf (pos, "0x%lx", (unsigned long)phys->cells[i]);
- pos = strchr(pos, '\0');
+ pos = strchr (pos, '\0');
}
len = pos - buf;
}