mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-12 20:38:50 +01:00
Fix several misleading indentation warnings on GCC 8.1.1 (#50)
This commit is contained in:
parent
c0ac6069f6
commit
f9903c05b3
9 changed files with 97 additions and 95 deletions
21
src/modify.c
21
src/modify.c
|
|
@ -253,17 +253,18 @@ static void playing_string_cleanup(struct descriptor_data *d, int action)
|
|||
notify_if_playing(d->character, d->mail_to);
|
||||
} else
|
||||
write_to_output(d, "Mail aborted.\r\n");
|
||||
free(*d->str);
|
||||
free(d->str);
|
||||
}
|
||||
|
||||
free(*d->str);
|
||||
free(d->str);
|
||||
}
|
||||
|
||||
/* We have no way of knowing which slot the post was sent to so we can only
|
||||
* give the message. */
|
||||
if (d->mail_to >= BOARD_MAGIC) {
|
||||
board_save_board(d->mail_to - BOARD_MAGIC);
|
||||
if (action == STRINGADD_ABORT)
|
||||
write_to_output(d, "Post not aborted, use REMOVE <post #>.\r\n");
|
||||
}
|
||||
/* We have no way of knowing which slot the post was sent to so we can only
|
||||
* give the message. */
|
||||
if (d->mail_to >= BOARD_MAGIC) {
|
||||
board_save_board(d->mail_to - BOARD_MAGIC);
|
||||
if (action == STRINGADD_ABORT)
|
||||
write_to_output(d, "Post not aborted, use REMOVE <post #>.\r\n");
|
||||
}
|
||||
if (PLR_FLAGGED(d->character, PLR_IDEA)) {
|
||||
if (action == STRINGADD_SAVE && *d->str){
|
||||
write_to_output(d, "Idea saved!\r\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue