diff options
| author | cgd <cgd@NetBSD.org> | 1995-03-23 08:28:00 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1995-03-23 08:28:00 +0000 |
| commit | 42fb1b9d4a67d89ff98133ccd6400928fb7fa4b0 (patch) | |
| tree | 41b251c6c20998a508908d6c27134c52c43bd8e6 /games/hack/hack.save.c | |
| parent | 6bfd77e43243356df04ed47d6ba7a43ca79ce47f (diff) | |
merge with Lite, new RCS id conventions, etc.
Diffstat (limited to 'games/hack/hack.save.c')
| -rw-r--r-- | games/hack/hack.save.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/games/hack/hack.save.c b/games/hack/hack.save.c index a60f6c6a3ac..3e7a2543c4d 100644 --- a/games/hack/hack.save.c +++ b/games/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); |
