summaryrefslogtreecommitdiffstats
path: root/sail
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2010-01-17 22:56:32 +0000
committerwiz <wiz@NetBSD.org>2010-01-17 22:56:32 +0000
commitbd6c81dd776fddd0e7853f2cfb907dc91723f8c3 (patch)
treec118f05233662f60c6dedac7786116a519b2e18f /sail
parentbd9d61269b77d4cdaa3143905aa1621c6d7a4ff6 (diff)
downloadbsdgames-darwin-bd6c81dd776fddd0e7853f2cfb907dc91723f8c3.tar.gz
bsdgames-darwin-bd6c81dd776fddd0e7853f2cfb907dc91723f8c3.tar.zst
bsdgames-darwin-bd6c81dd776fddd0e7853f2cfb907dc91723f8c3.zip
Close file when finished with it. Found by cppcheck.
Diffstat (limited to 'sail')
-rw-r--r--sail/lo_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sail/lo_main.c b/sail/lo_main.c
index 51954b92..1cd7beb6 100644
--- a/sail/lo_main.c
+++ b/sail/lo_main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lo_main.c,v 1.17 2009/08/12 09:05:08 dholland Exp $ */
+/* $NetBSD: lo_main.c,v 1.18 2010/01/17 22:56:32 wiz Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)lo_main.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: lo_main.c,v 1.17 2009/08/12 09:05:08 dholland Exp $");
+__RCSID("$NetBSD: lo_main.c,v 1.18 2010/01/17 22:56:32 wiz Exp $");
#endif
#endif /* not lint */
@@ -92,6 +92,7 @@ lo_main(void)
title[n++], sbuf, ship->shipname, log.l_netpoints,
(float) log.l_netpoints / ship->specs->pts);
}
+ fclose(fp);
printf("\n%d people have played.\n", npeople);
return 0;
}