Fix several misleading indentation warnings on GCC 8.1.1 (#50)

This commit is contained in:
Kevin Fischer
2018-07-14 11:31:20 -05:00
committed by wyld-sw
parent c0ac6069f6
commit f9903c05b3
9 changed files with 97 additions and 95 deletions

View File

@@ -797,6 +797,7 @@ static void do_stat_trigger(struct char_data *ch, trig_data *trig)
len += snprintf(sb + len, sizeof(sb)-len, "*** Overflow - script too long! ***\r\n");
break;
}
cmd_list = cmd_list->next;
}

View File

@@ -253,11 +253,12 @@ 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);
}
/* We have no way of knowing which slot the post was sent to so we can only
/* 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);