From ac4deac1873ca1bb570ffd479ed2cc1010762f89 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 28 Feb 2013 16:45:11 -0500 Subject: Call QUtil::safe_fopen in place of fopen fopen was previuosly called wrapped by QUtil::fopen_wrapper, but QUtil::safe_fopen does this itself, which is less cumbersome. --- libtests/lzw.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libtests/lzw.cc') diff --git a/libtests/lzw.cc b/libtests/lzw.cc index 1007ae24..003c9217 100644 --- a/libtests/lzw.cc +++ b/libtests/lzw.cc @@ -26,10 +26,8 @@ int main(int argc, char* argv[]) char* infilename = argv[1]; char* outfilename = argv[2]; - FILE* infile = QUtil::fopen_wrapper("open input file", - fopen(infilename, "rb")); // XXXX - FILE* outfile = QUtil::fopen_wrapper("open output file", - fopen(outfilename, "wb")); // XXXX + FILE* infile = QUtil::safe_fopen(infilename, "rb"); + FILE* outfile = QUtil::safe_fopen(outfilename, "wb"); Pl_StdioFile out("output", outfile); Pl_LZWDecoder decode("decode", &out, early_code_change); -- cgit v1.2.3-54-g00ecf