diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-08-25 11:07:43 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-08-25 11:07:43 +1000 |
commit | 77b426c555f0c92ccb0bf5dbbf18a3b2ef65de16 (patch) | |
tree | 69bf303fd1134b3e748bf735ed3de72e380383f2 /examples/c/ex_pack.c | |
parent | 067e204042927b8c1a38875409cb9f4699a9ada5 (diff) | |
download | mongo-77b426c555f0c92ccb0bf5dbbf18a3b2ef65de16.tar.gz |
Fix cleanup of home directories for example code, and fix use of system without checking the return value (clang has a warning for that).
Diffstat (limited to 'examples/c/ex_pack.c')
-rw-r--r-- | examples/c/ex_pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/c/ex_pack.c b/examples/c/ex_pack.c index 9f4b4630e99..c412d883485 100644 --- a/examples/c/ex_pack.c +++ b/examples/c/ex_pack.c @@ -49,8 +49,8 @@ int main(void) * environment variable isn't already set (as is done by make check). */ if (getenv("WIREDTIGER_HOME") == NULL) { - home = "WIREDTIGER_HOME"; - (void)system("rm -rf WIREDTIGER_HOME && mkdir WIREDTIGER_HOME"); + home = "WT_HOME"; + ret = system("rm -rf WT_HOME && mkdir WT_HOME"); } else home = NULL; |