Fix warning.

This commit is contained in:
Victor Zverovich 2014-05-06 12:17:31 -07:00
parent e283930566
commit 9c75b9eaa1

View File

@ -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()));
} }