Module Name: src Committed By: wiz Date: Sun Jan 17 23:06:31 UTC 2010
Modified Files: src/lib/libc/gdtoa: arithchk.c Log Message: Close file handle after using it. Found by cppcheck. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/lib/libc/gdtoa/arithchk.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gdtoa/arithchk.c diff -u src/lib/libc/gdtoa/arithchk.c:1.2 src/lib/libc/gdtoa/arithchk.c:1.3 --- src/lib/libc/gdtoa/arithchk.c:1.2 Wed Jan 25 15:27:42 2006 +++ src/lib/libc/gdtoa/arithchk.c Sun Jan 17 23:06:31 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: arithchk.c,v 1.2 2006/01/25 15:27:42 kleink Exp $ */ +/* $NetBSD: arithchk.c,v 1.3 2010/01/17 23:06:31 wiz Exp $ */ /**************************************************************** Copyright (C) 1997, 1998 Lucent Technologies @@ -178,8 +178,14 @@ fprintf(f, "#define NO_LONG_LONG\n"); if (a->kind <= 2 && fzcheck()) fprintf(f, "#define Sudden_Underflow\n"); +#ifdef WRITE_ARITH_H + fclose(f); +#endif return 0; } fprintf(f, "/* Unknown arithmetic */\n"); +#ifdef WRITE_ARITH_H + fclose(f); +#endif return 1; }