From 1f68d80a16d56f39e272a4504f33208e24ded820 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 31 Dec 2023 13:26:01 +0100 Subject: Reformatted functions --- FICS/playerdb.c | 24 ++++++++++++++---------- 1 file 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 -- cgit v1.2.3