From: Christos Zoulas Date: Wed, 7 Sep 2011 21:57:15 +0000 (+0000) Subject: typo X-Git-Tag: FILE5_09~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1541fc3b6d4851f3875f0881c929d659831cebcf;p=file typo --- diff --git a/configure.ac b/configure.ac index 86eed8e9..b3b93c83 100644 --- a/configure.ac +++ b/configure.ac @@ -142,14 +142,14 @@ else WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ -Wmissing-declarations -Wredundant-decls -Wnested-externs \ -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ - -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter" + -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" fi], [ if test "$GCC" = yes; then AC_MSG_RESULT(yes) WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ -Wmissing-declarations -Wredundant-decls -Wnested-externs \ -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ - -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter" + -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" else WARNINGS= AC_MSG_RESULT(no) diff --git a/src/apptype.c b/src/apptype.c index 128155a2..164c4f37 100644 --- a/src/apptype.c +++ b/src/apptype.c @@ -27,7 +27,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: apptype.c,v 1.11 2009/02/04 18:24:32 christos Exp $") +FILE_RCSID("@(#)$File: apptype.c,v 1.12 2011/08/28 07:03:27 christos Exp $") #endif /* lint */ #include @@ -72,7 +72,7 @@ file_os2_apptype(struct magic_set *ms, const char *fn, const void *buf, if (fwrite(buf, 1, nb, fp) != nb) { file_error(ms, errno, "cannot write tmp file `%s'", path); - (void)fclse(fp); + (void)fclose(fp); return -1; } (void)fclose(fp);