diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-31 13:26:01 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-31 13:26:01 +0100 |
commit | 1f68d80a16d56f39e272a4504f33208e24ded820 (patch) | |
tree | 9aaf57fd9151cf7b2a42f28c398d8095d0a1ba7e | |
parent | 1692bdcbeb549afe0085df9d5829dd2ab2d95e96 (diff) |
Reformatted functions
-rw-r--r-- | FICS/playerdb.c | 24 |
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 |