]> granicus.if.org Git - file/commitdiff
typo
authorChristos Zoulas <christos@zoulas.com>
Wed, 7 Sep 2011 21:57:15 +0000 (21:57 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 7 Sep 2011 21:57:15 +0000 (21:57 +0000)
configure.ac
src/apptype.c

index 86eed8e9437b0b2baa2c9c125d62f4111dbceaee..b3b93c83850eb0c6f2775c56ef0440af20c0ac16 100644 (file)
@@ -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)
index 128155a2d81291758d15c618c685924f38b19a0d..164c4f37048f52428d3db318481785e9e9277631 100644 (file)
@@ -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 <stdlib.h>
@@ -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);