diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-10-11 20:57:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-10-11 20:57:00 +0000 |
commit | fb8945272ab74262bb6cddec304a5bf73a7557e4 (patch) | |
tree | ce24642f44337101e647079b4955deb631315a3a /games/hack | |
parent | 95897a3a325dd246d5732135e1cbc5ddd0dd68bf (diff) |
use SEEK_SET; chl@tuxfamily.org
Diffstat (limited to 'games/hack')
-rw-r--r-- | games/hack/hack.save.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/hack/hack.save.c b/games/hack/hack.save.c index 2c4f4d18afc..ebc8bd75796 100644 --- a/games/hack/hack.save.c +++ b/games/hack/hack.save.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hack.save.c,v 1.7 2003/05/19 09:00:54 pjanzen Exp $ */ +/* $OpenBSD: hack.save.c,v 1.8 2006/10/11 20:56:59 deraadt Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -62,7 +62,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: hack.save.c,v 1.7 2003/05/19 09:00:54 pjanzen Exp $"; +static const char rcsid[] = "$OpenBSD: hack.save.c,v 1.8 2006/10/11 20:56:59 deraadt Exp $"; #endif /* not lint */ #include <stdio.h> @@ -201,7 +201,7 @@ dorecover(int fd) savelev(nfd,tmp); (void) close(nfd); } - (void) lseek(fd, (off_t)0, 0); + (void) lseek(fd, (off_t)0, SEEK_SET); getlev(fd, 0, 0); (void) close(fd); (void) unlink(SAVEF); |