Fix more warnings and some style.

This commit is contained in:
Zach Langley
2014-11-07 21:19:32 -08:00
parent 4e27091e57
commit 0ded4cf7e2
6 changed files with 48 additions and 45 deletions

View File

@@ -219,7 +219,7 @@ static void House_save_control(void)
return;
}
/* write all the house control recs in one fell swoop. Pretty nifty, eh? */
if (fwrite(house_control, sizeof(struct house_control_rec), num_of_houses, fl) != num_of_houses) {
if (fwrite(house_control, sizeof(struct house_control_rec), num_of_houses, fl) != (size_t)num_of_houses) {
perror("SYSERR: Unable to save house control file.");
return;
}