summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-03-20 23:24:19 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-03-20 23:24:19 +0000
commit03f05bdc3179e384311dc47f75682a01739c2c3f (patch)
tree812b21e77714a49ae7e1846ecc93089b579470b6 /lib
parent9621f647cee71d37109886077ad0c87c3701b2a2 (diff)
delete useless "typedef int bool_t", use int directly;
OK czarkoff@
Diffstat (limited to 'lib')
-rw-r--r--lib/libedit/common.c8
-rw-r--r--lib/libedit/el.h4
2 files changed, 5 insertions, 7 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;
diff --git a/lib/libedit/el.h b/lib/libedit/el.h
index 37bf3f72e4f..7a0d25247b0 100644
--- a/lib/libedit/el.h
+++ b/lib/libedit/el.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: el.h,v 1.14 2016/03/20 22:57:59 schwarze Exp $ */
+/* $OpenBSD: el.h,v 1.15 2016/03/20 23:24:18 schwarze Exp $ */
/* $NetBSD: el.h,v 1.21 2009/12/31 15:58:26 christos Exp $ */
/*-
@@ -62,8 +62,6 @@
#define NARROW_HISTORY 0x40
#define NARROW_READ 0x80
-typedef int bool_t; /* True or not */
-
typedef unsigned char el_action_t; /* Index to command array */
typedef struct coord_t { /* Position on the screen */