summaryrefslogtreecommitdiffstats
path: root/hack/hack.save.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-01-28 06:55:41 +0000
committerdholland <dholland@NetBSD.org>2008-01-28 06:55:41 +0000
commitdfce1cca7e9f2a93d3246b5dba2113e20cbc447a (patch)
tree44b17315ece5b2f5ce5ec3ebea7e212a0525e0c3 /hack/hack.save.c
parente0675e304b50073e40bf7b5d3bfc9ef7d7358ace (diff)
downloadbsdgames-darwin-dfce1cca7e9f2a93d3246b5dba2113e20cbc447a.tar.gz
bsdgames-darwin-dfce1cca7e9f2a93d3246b5dba2113e20cbc447a.tar.zst
bsdgames-darwin-dfce1cca7e9f2a93d3246b5dba2113e20cbc447a.zip
Make hack build with WARNS=4.
Diffstat (limited to 'hack/hack.save.c')
-rw-r--r--hack/hack.save.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hack/hack.save.c b/hack/hack.save.c
index 75e5f759..9a968da4 100644
--- a/hack/hack.save.c
+++ b/hack/hack.save.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.save.c,v 1.9 2007/12/15 19:44:41 perry Exp $ */
+/* $NetBSD: hack.save.c,v 1.10 2008/01/28 06:55:42 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.save.c,v 1.9 2007/12/15 19:44:41 perry Exp $");
+__RCSID("$NetBSD: hack.save.c,v 1.10 2008/01/28 06:55:42 dholland Exp $");
#endif /* not lint */
#include <signal.h>
@@ -175,7 +175,7 @@ dorecover(fd)
fcobj = restobjchn(fd);
fallen_down = restmonchn(fd);
mread(fd, (char *) &tmp, sizeof tmp);
- if (tmp != getuid()) { /* strange ... */
+ if (tmp != (int) getuid()) { /* strange ... */
(void) close(fd);
(void) unlink(SAVEF);
puts("Saved game was not yours.");