From f235766a3d9b65b9671e8c62ba4676435e8c0cdc Mon Sep 17 00:00:00 2001 From: tg Date: Fri, 6 Feb 2015 09:42:46 +0000 Subject: [PATCH] =?UTF-8?q?int=20=E2=86=92=20bool?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exec.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/exec.c b/exec.c index 2202fb9..df9105f 100644 --- a/exec.c +++ b/exec.c @@ -23,7 +23,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.140 2015/02/06 09:42:08 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.141 2015/02/06 09:42:46 tg Exp $"); #ifndef MKSH_DEFAULT_EXECSHELL #define MKSH_DEFAULT_EXECSHELL "/bin/sh" @@ -556,7 +556,8 @@ comexec(struct op *t, struct tbl * volatile tp, const char **ap, ap++; flags |= XEXEC; } else if (tp->val.f == c_command) { - int optc, saw_p = 0; + int optc; + bool saw_p = false; /* * Ugly dealing with options in two places (here @@ -564,7 +565,7 @@ comexec(struct op *t, struct tbl * volatile tp, const char **ap, */ ksh_getopt_reset(&builtin_opt, 0); while ((optc = ksh_getopt(ap, &builtin_opt, ":p")) == 'p') - saw_p = 1; + saw_p = true; if (optc != EOF) /* command -vV or something */ break;