diff options
author | 2016-03-20 23:24:18 +0000 | |
---|---|---|
committer | 2016-03-20 23:24:18 +0000 | |
commit | 8df20b6ba87d0bae44ae76489fce60effdc66f92 (patch) | |
tree | 00b4e13fb0be90a5bbaafde48f1b59255284a0d8 /lib | |
parent | Cleanup of private header inclusion: (diff) | |
download | wireguard-openbsd-8df20b6ba87d0bae44ae76489fce60effdc66f92.tar.xz wireguard-openbsd-8df20b6ba87d0bae44ae76489fce60effdc66f92.zip |
delete useless "typedef int bool_t", use int directly;
OK czarkoff@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libedit/common.c | 8 | ||||
-rw-r--r-- | lib/libedit/el.h | 4 |
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 */ |