diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-03-02 14:12:09 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-03-02 14:12:09 -0500 |
commit | ae3aefe49c7e6eb605e00d0fa624056f5d5c45b6 (patch) | |
tree | c20e3c9e875ef556e7f9e187d8cefbb5c51b7903 /test | |
parent | 9bf735898339d8da9b3d61d61906f71bdc5f06de (diff) | |
download | mongo-ae3aefe49c7e6eb605e00d0fa624056f5d5c45b6.tar.gz |
Make the spell-checker happy again.
Diffstat (limited to 'test')
-rw-r--r-- | test/salvage/salvage.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/salvage/salvage.c b/test/salvage/salvage.c index 63ea43a2703..1c4d54df9e9 100644 --- a/test/salvage/salvage.c +++ b/test/salvage/salvage.c @@ -447,14 +447,14 @@ run(int r) } /* - * fexists -- + * file_exists -- * Return if the file exists. */ static int -fexists(const char *path) +file_exists(const char *path) { struct stat sb; - + return (stat(path, &sb) == 0); } @@ -545,7 +545,7 @@ build(int ikey, int ivalue, int cnt) * then remove it (all we want is the appropriate schema entry, we're * creating the salvage file itself by hand). */ - new_slvg = !fexists(SLVG); + new_slvg = !file_exists(SLVG); if (new_slvg) { assert(session->drop(session, "file:" SLVG, "force") == 0); assert(session->create(session, "file:" SLVG, config) == 0); @@ -574,7 +574,7 @@ copy(u_int gen, u_int recno) * copy the first sector (the file description). * Otherwise, we are appending to an existing file. */ - if (fexists(SLVG)) + if (file_exists(SLVG)) assert((ofp = fopen(SLVG, "a")) != NULL); else { assert((ofp = fopen(SLVG, "w")) != NULL); |