summaryrefslogtreecommitdiffstats
path: root/hack/hack.save.c
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1995-03-23 08:28:00 +0000
committercgd <cgd@NetBSD.org>1995-03-23 08:28:00 +0000
commit94b5353c71e7246077d468afe68d51ce85fc213d (patch)
tree0b6f70b8110f5d6650a6083460424df854c415f8 /hack/hack.save.c
parent1c0b80f0fe7a28cd947ace3e69f5fd2ac8ed47cb (diff)
downloadbsdgames-darwin-94b5353c71e7246077d468afe68d51ce85fc213d.tar.gz
bsdgames-darwin-94b5353c71e7246077d468afe68d51ce85fc213d.tar.zst
bsdgames-darwin-94b5353c71e7246077d468afe68d51ce85fc213d.zip
merge with Lite, new RCS id conventions, etc.
Diffstat (limited to 'hack/hack.save.c')
-rw-r--r--hack/hack.save.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hack/hack.save.c b/hack/hack.save.c
index a60f6c6a..3e7a2543 100644
--- a/hack/hack.save.c
+++ b/hack/hack.save.c
@@ -3,13 +3,14 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: hack.save.c,v 1.4 1994/03/28 11:21:12 cgd Exp $";
+static char rcsid[] = "$NetBSD: hack.save.c,v 1.5 1995/03/23 08:31:27 cgd Exp $";
#endif /* not lint */
#include "hack.h"
extern char genocided[60]; /* defined in Decl.c */
extern char fut_geno[60]; /* idem */
#include <signal.h>
+#include <unistd.h>
extern char SAVEF[], nul[];
extern char pl_character[PL_CSIZ];
@@ -137,7 +138,7 @@ register fd;
savelev(nfd,tmp);
(void) close(nfd);
}
- (void) lseek(fd, 0, 0);
+ (void) lseek(fd, (off_t)0, 0);
getlev(fd, 0, 0);
(void) close(fd);
(void) unlink(SAVEF);