aboutsummaryrefslogtreecommitdiff
path: root/src/librc/librc-stringlist.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-05-28 11:53:29 -0400
committerMike Frysinger <vapier@gentoo.org>2011-05-28 11:53:29 -0400
commitfe18c7bb632671457c3c261d36dece3fd09a4f69 (patch)
tree1358e8a6b915a4c73dc6e332b945e2309dc1522a /src/librc/librc-stringlist.c
parentf8ff4a86a3f24ea49f278c14a9ce5c0dbc8223e2 (diff)
librc: tweak style: foo () -> foo()
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'src/librc/librc-stringlist.c')
-rw-r--r--src/librc/librc-stringlist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librc/librc-stringlist.c b/src/librc/librc-stringlist.c
index 818a31cb..22b823b2 100644
--- a/src/librc/librc-stringlist.c
+++ b/src/librc/librc-stringlist.c
@@ -41,7 +41,7 @@ rc_stringlist_new(void)
librc_hidden_def(rc_stringlist_new)
RC_STRING *
-rc_stringlist_add (RC_STRINGLIST *list, const char *value)
+rc_stringlist_add(RC_STRINGLIST *list, const char *value)
{
RC_STRING *s = xmalloc(sizeof(*s));
@@ -52,7 +52,7 @@ rc_stringlist_add (RC_STRINGLIST *list, const char *value)
librc_hidden_def(rc_stringlist_add)
RC_STRING *
-rc_stringlist_addu (RC_STRINGLIST *list, const char *value)
+rc_stringlist_addu(RC_STRINGLIST *list, const char *value)
{
RC_STRING *s;
@@ -74,8 +74,8 @@ rc_stringlist_delete(RC_STRINGLIST *list, const char *value)
TAILQ_FOREACH(s, list, entries)
if (strcmp(s->value, value) == 0) {
TAILQ_REMOVE(list, s, entries);
- free (s->value);
- free (s);
+ free(s->value);
+ free(s);
return true;
}
@@ -127,7 +127,7 @@ rc_stringlist_sort(RC_STRINGLIST **list)
TAILQ_REMOVE(l, s, entries);
last = NULL;
TAILQ_FOREACH(n, new, entries) {
- if (strcmp (s->value, n->value) < 0)
+ if (strcmp(s->value, n->value) < 0)
break;
last = n;
}