Remove some redundant casts.

This commit is contained in:
Markus Armbruster 2005-06-12 08:17:13 +00:00
parent 4f59fc9967
commit 8585ec930f
7 changed files with 13 additions and 14 deletions

View file

@ -1115,8 +1115,8 @@ write_file(void)
{
int n;
if ((n = fwrite((void *)sectsbuf, sizeof(struct sctstr),
YSIZE * XSIZE, sect_fptr)) <= 0) {
n = fwrite(sectsbuf, sizeof(struct sctstr), YSIZE * XSIZE, sect_fptr);
if (n <= 0) {
perror(empfile[EF_SECTOR].file);
return -1;
}