diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-22 17:14:35 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-22 17:14:35 +0000 |
commit | 876705771ce25a4fde66ddfeeaed78e36c2522fa (patch) | |
tree | 5302300c6a77585e42ee9c9473fe0405e5eb5896 /bin/ksh/eval.c | |
parent | d8ab4b6082e45f27eab20a66b1077ed25bcc3a30 (diff) |
Use stdbool.h instead of rolling our own bools.
Diffstat (limited to 'bin/ksh/eval.c')
-rw-r--r-- | bin/ksh/eval.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/ksh/eval.c b/bin/ksh/eval.c index c14f5daaf27..86a5422a669 100644 --- a/bin/ksh/eval.c +++ b/bin/ksh/eval.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eval.c,v 1.21 2004/12/20 11:34:26 otto Exp $ */ +/* $OpenBSD: eval.c,v 1.22 2004/12/22 17:14:34 millert Exp $ */ /* * Expansion - quoting, separation, substitution, globbing @@ -867,7 +867,7 @@ comsub(Expand *xp, char *cp) shf = shf_fdopen(pv[0], SHF_RD, (struct shf *) 0); ofd1 = savefd(1, 0); /* fd 1 may be closed... */ if (pv[1] != 1) { - ksh_dup2(pv[1], 1, FALSE); + ksh_dup2(pv[1], 1, false); close(pv[1]); } execute(t, XFORK|XXCOM|XPIPEO); @@ -894,7 +894,7 @@ trimsub(char *str, char *pat, int how) case '#': /* shortest at beginning */ for (p = str; p <= end; p++) { c = *p; *p = '\0'; - if (gmatch(str, pat, FALSE)) { + if (gmatch(str, pat, false)) { *p = c; return p; } @@ -904,7 +904,7 @@ trimsub(char *str, char *pat, int how) case '#'|0x80: /* longest match at beginning */ for (p = end; p >= str; p--) { c = *p; *p = '\0'; - if (gmatch(str, pat, FALSE)) { + if (gmatch(str, pat, false)) { *p = c; return p; } @@ -913,13 +913,13 @@ trimsub(char *str, char *pat, int how) break; case '%': /* shortest match at end */ for (p = end; p >= str; p--) { - if (gmatch(p, pat, FALSE)) + if (gmatch(p, pat, false)) return str_nsave(str, p - str, ATEMP); } break; case '%'|0x80: /* longest match at end */ for (p = str; p <= end; p++) { - if (gmatch(p, pat, FALSE)) + if (gmatch(p, pat, false)) return str_nsave(str, p - str, ATEMP); } break; @@ -1080,7 +1080,7 @@ globit(XString *xs, /* dest string */ (name[1] == 0 || (name[1] == '.' && name[2] == 0))) continue; /* always ignore . and .. */ if ((*name == '.' && *sp != '.') - || !gmatch(name, sp, TRUE)) + || !gmatch(name, sp, true)) continue; len = strlen(d->d_name) + 1; |