summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/rogue/save.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/rogue/save.c b/games/rogue/save.c
index cbc67406325..b179417c566 100644
--- a/games/rogue/save.c
+++ b/games/rogue/save.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: save.c,v 1.10 2004/01/21 19:12:13 espie Exp $ */
+/* $OpenBSD: save.c,v 1.11 2006/03/06 17:28:58 henning Exp $ */
/* $NetBSD: save.c,v 1.3 1995/04/22 10:28:21 cgd Exp $ */
/*
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93";
#else
-static const char rcsid[] = "$OpenBSD: save.c,v 1.10 2004/01/21 19:12:13 espie Exp $";
+static const char rcsid[] = "$OpenBSD: save.c,v 1.11 2006/03/06 17:28:58 henning Exp $";
#endif
#endif /* not lint */
@@ -180,7 +180,7 @@ restore(fname)
int new_file_id, saved_file_id;
if (((new_file_id = md_get_file_id(fname)) == -1) ||
- ((fp = open(fname, O_RDONLY, 0)) == NULL)) {
+ ((fp = open(fname, O_RDONLY, 0)) == -1)) {
clean_up("cannot open file");
return; /* NOT REACHED */
}