diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-31 19:37:24 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-31 19:37:24 +0100 |
commit | 2f72de03d5e78437df7d47e396d7ba3c5c5a5c7a (patch) | |
tree | e6fff87edb69f76958e8a5e2be447f1b846bd273 /FICS/playerdb.c | |
parent | 944a039c55ee86dd793720be6b6b79fa5df35ff0 (diff) |
Reformatted functions
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r-- | FICS/playerdb.c | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c index a70bfea..55235da 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -238,40 +238,42 @@ PUBLIC int player_zero(int p) return 0; } -PUBLIC int player_free(int p) +PUBLIC int +player_free(int p) { - int i; + int i; - strfree(parray[p].login); - strfree(parray[p].name); - strfree(parray[p].passwd); - strfree(parray[p].fullName); - strfree(parray[p].emailAddress); - if (parray[p].prompt != def_prompt) - strfree(parray[p].prompt); -/* strfree(parray[p].partner); */ - for (i = 0; i < parray[p].num_plan; i++) - strfree(parray[p].planLines[i]); - for (i = 0; i < parray[p].num_formula; i++) - strfree(parray[p].formulaLines[i]); - strfree(parray[p].formula); - list_free(parray[p].lists); - for (i = 0; i < parray[p].numAlias; i++) { - strfree(parray[p].alias_list[i].comm_name); - strfree(parray[p].alias_list[i].alias); - } -/* - if (parray[p].query_log != NULL) - tl_free(parray[p].query_log); -*/ - return 0; + strfree(parray[p].login); + strfree(parray[p].name); + strfree(parray[p].passwd); + strfree(parray[p].fullName); + strfree(parray[p].emailAddress); + + if (parray[p].prompt != def_prompt) + strfree(parray[p].prompt); + + for (i = 0; i < parray[p].num_plan; i++) + strfree(parray[p].planLines[i]); + for (i = 0; i < parray[p].num_formula; i++) + strfree(parray[p].formulaLines[i]); + + strfree(parray[p].formula); + list_free(parray[p].lists); + + for (i = 0; i < parray[p].numAlias; i++) { + strfree(parray[p].alias_list[i].comm_name); + strfree(parray[p].alias_list[i].alias); + } + + return 0; } -PUBLIC int player_clear(int p) +PUBLIC int +player_clear(int p) { - player_free(p); - player_zero(p); - return 0; + player_free(p); + player_zero(p); + return 0; } PUBLIC int |