]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Now that O_BINARY is being explicitly asserted everywhere it should
authorTim Kientzle <kientzle@gmail.com>
Sun, 28 Jun 2009 23:59:21 +0000 (19:59 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sun, 28 Jun 2009 23:59:21 +0000 (19:59 -0400)
be, we can remove the last _set_fmode() calls.

SVN-Revision: 1204

cpio/test/main.c
libarchive/test/main.c
tar/test/main.c

index 5c84e89a49f74bc11d16b6b2c34d7d159eea04a5..442c93f09cfcaedeefe5dda89ef77ef707b5a33b 100644 (file)
@@ -994,12 +994,6 @@ int main(int argc, char **argv)
 
        (void)argc; /* UNUSED */
 
-#if defined(_WIN32) && !defined(__CYGWIN__)
-       /* Make sure open() function will be used with a binary mode. */
-       /* on cygwin, we need something similar, but instead link against */
-       /* a special startup object, binmode.o */
-       _set_fmode(_O_BINARY);
-#endif
        /*
         * Name of this program, used to build root of our temp directory
         * tree.
index 83aea6bb470b183fff13d0640c2487f9f6914a6f..f8e66d667acfd11792161643647688269ffeaf97 100644 (file)
@@ -1064,11 +1064,6 @@ int main(int argc, char **argv)
 #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__GNUC__)
        /* To stop to run the default invalid parameter handler. */
        _set_invalid_parameter_handler(invalid_parameter_handler);
-       /* for open() to a binary mode. */
-       /* This shouldn't be needed, because all tests should
-        * explicitly use O_BINARY flag to open() and "b" to
-        * fopen(): */
-       /* _set_fmode(_O_BINARY); */
        /* Disable annoying assertion message box. */
        _CrtSetReportMode(_CRT_ASSERT, 0);
 #endif
index 06a78d8c04804ab1e4a62e43ba30052a0392fa50..2d2e8dd15e2d55419c418a279aa480c8e9ad202d 100644 (file)
@@ -1039,11 +1039,6 @@ int main(int argc, char **argv)
 #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__GNUC__)
        /* To stop to run the default invalid parameter handler. */
        _set_invalid_parameter_handler(invalid_parameter_handler);
-       /* for open() to a binary mode. */
-       /* This shouldn't be needed, because all tests should
-        * explicitly use O_BINARY flag to open() and "b" to
-        * fopen(): */
-       /* _set_fmode(_O_BINARY); */
        /* Disable annoying assertion message box. */
        _CrtSetReportMode(_CRT_ASSERT, 0);
 #endif