aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-31 13:26:01 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-31 13:26:01 +0100
commit1f68d80a16d56f39e272a4504f33208e24ded820 (patch)
tree9aaf57fd9151cf7b2a42f28c398d8095d0a1ba7e /FICS
parent1692bdcbeb549afe0085df9d5829dd2ab2d95e96 (diff)
Reformatted functions
Diffstat (limited to 'FICS')
-rw-r--r--FICS/playerdb.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index c819eb5..7f9cd22 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -1971,20 +1971,24 @@ player_add_message(int top, int fromp, char *message)
return 0;
}
-PUBLIC void SaveTextListEntry(textlist **Entry, char *string, int n)
+PUBLIC void
+SaveTextListEntry(textlist **Entry, char *string, int n)
{
- *Entry = (textlist *) rmalloc(sizeof(textlist));
- (*Entry)->text = xstrdup(string);
- (*Entry)->index = n;
- (*Entry)->next = NULL;
+ *Entry = rmalloc(sizeof(textlist));
+
+ (*Entry)->text = xstrdup(string);
+ (*Entry)->index = n;
+ (*Entry)->next = NULL;
}
-PUBLIC textlist *ClearTextListEntry(textlist *entry)
+PUBLIC textlist *
+ClearTextListEntry(textlist *entry)
{
- textlist *ret = entry->next;
- strfree(entry->text);
- rfree(entry);
- return ret;
+ textlist *ret = entry->next;
+
+ strfree(entry->text);
+ rfree(entry);
+ return ret;
}
PUBLIC void