From ac4d3801a4355bfd9f68d4687772eff75abb95ee Mon Sep 17 00:00:00 2001 From: Susan LoVerso Date: Mon, 23 Mar 2015 10:01:23 -0400 Subject: Add flags to wt_fopen/fclose. #1785 --- src/btree/bt_huffman.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/btree/bt_huffman.c') diff --git a/src/btree/bt_huffman.c b/src/btree/bt_huffman.c index 6bba0c56369..11321db0a76 100644 --- a/src/btree/bt_huffman.c +++ b/src/btree/bt_huffman.c @@ -157,11 +157,11 @@ __huffman_confchk_file( /* Check the file exists. */ WT_RET(__wt_strndup(session, v->str + len, v->len - len, &fname)); - WT_ERR(__wt_fopen(session, fname, "r", WT_FOPEN_FIXED, &fp)); + WT_ERR(__wt_fopen(session, fname, WT_FOPEN_READ, WT_FOPEN_FIXED, &fp)); /* Optionally return the file handle. */ if (fpp == NULL) - (void)__wt_fclose(session, &fp, 0); + (void)__wt_fclose(session, &fp, WT_FCLOSE_READ); else *fpp = fp; @@ -367,7 +367,7 @@ __wt_huffman_read(WT_SESSION_IMPL *session, WT_CONFIG_ITEM *ip, if (0) { err: __wt_free(session, table); } - (void)__wt_fclose(session, &fp, 0); + (void)__wt_fclose(session, &fp, WT_FCLOSE_READ); return (ret); } -- cgit v1.2.1