Module Name: src
Committed By: wiz
Date: Sun Jan 17 22:56:32 UTC 2010
Modified Files:
src/games/sail: lo_main.c
Log Message:
Close file when finished with it. Found by cppcheck.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/games/sail/lo_main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/sail/lo_main.c
diff -u src/games/sail/lo_main.c:1.17 src/games/sail/lo_main.c:1.18
--- src/games/sail/lo_main.c:1.17 Wed Aug 12 09:05:08 2009
+++ src/games/sail/lo_main.c Sun Jan 17 22:56:32 2010
@@ -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 @@
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;
}