mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-20 14:34:06 +01:00
Fix more warnings and some style.
This commit is contained in:
parent
4e27091e57
commit
0ded4cf7e2
6 changed files with 48 additions and 45 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue