X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/77e3814f0c0e3dea4d0032e25666f77e6f83bfff..f7ec96d53d1d6067e74f38ff6eeff54ea5a75004:/hack/hack.save.c diff --git a/hack/hack.save.c b/hack/hack.save.c index fe09e1e7..3e7a2543 100644 --- a/hack/hack.save.c +++ b/hack/hack.save.c @@ -1,14 +1,19 @@ -/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ -/* hack.save.c - version 1.0.3 */ +/* + * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. + */ + +#ifndef lint +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 +#include extern char SAVEF[], nul[]; extern char pl_character[PL_CSIZ]; -extern long lseek(); extern struct obj *restobjchn(); extern struct monst *restmonchn(); @@ -133,7 +138,7 @@ register fd; savelev(nfd,tmp); (void) close(nfd); } - (void) lseek(fd, 0L, 0); + (void) lseek(fd, (off_t)0, 0); getlev(fd, 0, 0); (void) close(fd); (void) unlink(SAVEF);