aboutsummaryrefslogtreecommitdiff
path: root/sim/common/hw-instances.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-instances.c
parent1f84b6196ba7218766be02547881a5c2165be3ae (diff)
downloadgdb-34b47c3828ca8e6d9dcddb2886744fb470e4276c.zip
gdb-34b47c3828ca8e6d9dcddb2886744fb470e4276c.tar.gz
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-instances.c')
-rw-r--r--sim/common/hw-instances.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sim/common/hw-instances.c b/sim/common/hw-instances.c
index 5498552..f7d177b 100644
--- a/sim/common/hw-instances.c
+++ b/sim/common/hw-instances.c
@@ -87,7 +87,7 @@ hw_instance_delete (struct hw_instance *instance)
struct hw *me = hw_instance_hw (instance);
if (instance->to_instance_delete == NULL)
hw_abort (me, "no delete method");
- instance->method->delete(instance);
+ instance->method->delete (instance);
if (instance->args != NULL)
free (instance->args);
if (instance->path != NULL)
@@ -109,7 +109,7 @@ hw_instance_delete (struct hw_instance *instance)
struct hw_instance *curr = me->instances;
while (curr != NULL)
{
- ASSERT(curr != instance);
+ ASSERT (curr != instance);
curr = curr->next;
}
/* unlink the child */
@@ -173,7 +173,7 @@ hw_instance_call_method (struct hw_instance *instance,
}
while (method->name != NULL)
{
- if (strcmp(method->name, method_name) == 0)
+ if (strcmp (method->name, method_name) == 0)
{
return method->method (instance,
n_stack_args, stack_args,
@@ -280,8 +280,8 @@ hw_instance_interceed (struct hw_instance *parent,
*previous = instance;
}
instance->data = data;
- instance->args = (args == NULL ? NULL : (char *) strdup(args));
- instance->path = (path == NULL ? NULL : (char *) strdup(path));
+ instance->args = (args == NULL ? NULL : (char *) strdup (args));
+ instance->path = (path == NULL ? NULL : (char *) strdup (path));
cap_add (instance->owner->ihandles, instance);
return instance;
#endif