summaryrefslogtreecommitdiff
path: root/src/conn/conn_ckpt.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-09-24 14:29:56 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2015-09-29 14:05:30 +1000
commit6f6281c978507312def82af8fa6dd020b9fcb1a6 (patch)
tree6a37d903ea8dbb121bc04d28b2e69a6c02f5da17 /src/conn/conn_ckpt.c
parentcd8ae463f0830e56ec66de73de78ca81041615b2 (diff)
downloadmongo-6f6281c978507312def82af8fa6dd020b9fcb1a6.tar.gz
Merge pull request #2209 from wiredtiger/more-bool-keith
WT-2122 more boolean conversion (cherry picked from commit 91deacba5a77db31216fccfb6bffdbe81375f0b4)
Diffstat (limited to 'src/conn/conn_ckpt.c')
-rw-r--r--src/conn/conn_ckpt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conn/conn_ckpt.c b/src/conn/conn_ckpt.c
index 74f27d8bd18..a2e985ee1ea 100644
--- a/src/conn/conn_ckpt.c
+++ b/src/conn/conn_ckpt.c
@@ -15,7 +15,7 @@ static int __ckpt_server_start(WT_CONNECTION_IMPL *);
* Parse and setup the checkpoint server options.
*/
static int
-__ckpt_server_config(WT_SESSION_IMPL *session, const char **cfg, int *startp)
+__ckpt_server_config(WT_SESSION_IMPL *session, const char **cfg, bool *startp)
{
WT_CONFIG_ITEM cval;
WT_CONNECTION_IMPL *conn;
@@ -38,10 +38,10 @@ __ckpt_server_config(WT_SESSION_IMPL *session, const char **cfg, int *startp)
if ((conn->ckpt_usecs == 0 && conn->ckpt_logsize == 0) ||
(conn->ckpt_logsize && conn->ckpt_usecs == 0 &&
!FLD_ISSET(conn->log_flags, WT_CONN_LOG_ENABLED))) {
- *startp = 0;
+ *startp = false;
return (0);
}
- *startp = 1;
+ *startp = true;
/*
* The application can specify a checkpoint name, which we ignore if
@@ -161,7 +161,7 @@ int
__wt_checkpoint_server_create(WT_SESSION_IMPL *session, const char *cfg[])
{
WT_CONNECTION_IMPL *conn;
- int start;
+ bool start;
conn = S2C(session);
start = 0;