srogue: remove remnants of deleted savefile checks.

save_file() used fstat() and direct write() as part of the inode check
which was deleted in f11eeafc.  These operations no longer had any
effect.
This commit is contained in:
John "Elwin" Edwards 2015-08-03 07:04:48 -04:00
parent b1e2b6206d
commit 214c2f6608

View file

@ -160,7 +160,6 @@ dosave()
save_file(savef)
FILE *savef;
{
reg int fnum;
int slines = LINES;
int scols = COLS;
@ -168,20 +167,12 @@ FILE *savef;
_djstat_flags |= _STAT_INODE; /* so turn off computing it for now */
#endif
/*
* force allocation of the buffer now so that inodes, etc
* can be checked when restoring saved games.
*/
fnum = fileno(savef);
fstat(fnum, &sbuf);
write(fnum, "RDK", 4);
lseek(fnum, 0L, 0);
encwrite(version,strlen(version)+1,savef);
encwrite(&slines,sizeof(slines),savef);
encwrite(&scols,sizeof(scols),savef);
msg("");
rs_save_file(savef);
close(fnum);
fclose(savef);
md_onsignal_exit();
wclear(cw);
draw(cw);