diff options
Diffstat (limited to 'FICS')
-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 |