Commit 9c75b9ea authored by Victor Zverovich's avatar Victor Zverovich

Fix warning.

parent e2839305
...@@ -419,9 +419,9 @@ TEST(FileTest, DefaultCtor) { ...@@ -419,9 +419,9 @@ TEST(FileTest, DefaultCtor) {
} }
TEST(FileTest, OpenBufferedFileInCtor) { TEST(FileTest, OpenBufferedFileInCtor) {
FILE *pf = fopen("test-file", "w"); FILE *fp = std::fopen("test-file", "w");
fprintf(pf, FILE_CONTENT); std::fputs(FILE_CONTENT, fp);
fclose(pf); std::fclose(fp);
File f("test-file", File::RDONLY); File f("test-file", File::RDONLY);
ASSERT_TRUE(IsOpen(f.descriptor())); ASSERT_TRUE(IsOpen(f.descriptor()));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment