summaryrefslogtreecommitdiff
path: root/src/utilities/util_misc.c
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-09-25 09:47:19 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2015-09-29 16:56:36 +1000
commit4b6157e191d644603e6c0642aed1e9f07eee596d (patch)
treea3bc4859b2dac87d4cbc571e8b9fefe2377f49c5 /src/utilities/util_misc.c
parentd1dff562e256cf3726f8ec229feced879f212096 (diff)
downloadmongo-4b6157e191d644603e6c0642aed1e9f07eee596d.tar.gz
WT-2112 Use bool in more places
Merge pull request #2216 from wiredtiger/more-bool (cherry picked from commit 53638a10713925406f92d20fa840a94cd2cfa22a)
Diffstat (limited to 'src/utilities/util_misc.c')
-rw-r--r--src/utilities/util_misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utilities/util_misc.c b/src/utilities/util_misc.c
index f14ad7119bd..76cb37b30dc 100644
--- a/src/utilities/util_misc.c
+++ b/src/utilities/util_misc.c
@@ -44,14 +44,14 @@ util_err(WT_SESSION *session, int e, const char *fmt, ...)
* Read a line from stdin into a ULINE.
*/
int
-util_read_line(WT_SESSION *session, ULINE *l, int eof_expected, int *eofp)
+util_read_line(WT_SESSION *session, ULINE *l, bool eof_expected, bool *eofp)
{
static uint64_t line = 0;
size_t len;
int ch;
++line;
- *eofp = 0;
+ *eofp = false;
if (l->memsize == 0) {
if ((l->mem = realloc(l->mem, l->memsize + 1024)) == NULL)
@@ -62,7 +62,7 @@ util_read_line(WT_SESSION *session, ULINE *l, int eof_expected, int *eofp)
if ((ch = getchar()) == EOF) {
if (len == 0) {
if (eof_expected) {
- *eofp = 1;
+ *eofp = true;
return (0);
}
return (util_err(session, 0,