summaryrefslogtreecommitdiffstats
path: root/lib/libedit/common.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-03-20 23:24:18 +0000
committerschwarze <schwarze@openbsd.org>2016-03-20 23:24:18 +0000
commit8df20b6ba87d0bae44ae76489fce60effdc66f92 (patch)
tree00b4e13fb0be90a5bbaafde48f1b59255284a0d8 /lib/libedit/common.c
parentCleanup of private header inclusion: (diff)
downloadwireguard-openbsd-8df20b6ba87d0bae44ae76489fce60effdc66f92.tar.xz
wireguard-openbsd-8df20b6ba87d0bae44ae76489fce60effdc66f92.zip
delete useless "typedef int bool_t", use int directly;
OK czarkoff@
Diffstat (limited to 'lib/libedit/common.c')
-rw-r--r--lib/libedit/common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libedit/common.c b/lib/libedit/common.c
index c7344183717..47a6ca152ef 100644
--- a/lib/libedit/common.c
+++ b/lib/libedit/common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: common.c,v 1.12 2016/03/20 22:57:59 schwarze Exp $ */
+/* $OpenBSD: common.c,v 1.13 2016/03/20 23:24:18 schwarze Exp $ */
/* $NetBSD: common.c,v 1.24 2009/12/30 22:37:40 christos Exp $ */
/*-
@@ -706,7 +706,7 @@ ed_search_prev_history(EditLine *el, wint_t c __attribute__((__unused__)))
{
const Char *hp;
int h;
- bool_t found = 0;
+ int found = 0;
el->el_chared.c_vcmd.action = NOP;
el->el_chared.c_undo.len = -1;
@@ -745,7 +745,7 @@ ed_search_prev_history(EditLine *el, wint_t c __attribute__((__unused__)))
(el->el_line.lastchar - el->el_line.buffer)) ||
hp[el->el_line.lastchar - el->el_line.buffer]) &&
c_hmatch(el, hp)) {
- found++;
+ found = 1;
break;
}
h++;
@@ -774,7 +774,7 @@ ed_search_next_history(EditLine *el, wint_t c __attribute__((__unused__)))
{
const Char *hp;
int h;
- bool_t found = 0;
+ int found = 0;
el->el_chared.c_vcmd.action = NOP;
el->el_chared.c_undo.len = -1;