diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-03-20 00:01:23 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-03-20 00:01:23 +0000 |
commit | 276cbad1f829d62d4f85498a058f5ea0cc61557f (patch) | |
tree | 5e320a1dd34c0104d488b776f4540ea2bad79709 /lib/libedit | |
parent | a03665481d25c081209ea32e59ed23a80f839be2 (diff) |
Currently we have about a 50/50 split over fcntl(n, F_GETFL [,0])
idioms.
Adopt the more concise fcntl(n, F_GETFL) over fcntl(n, F_GETFL, 0)
where it is obvious further investigation will not yield and
even better way.
Obviousness evaluation and ok guenther@
Diffstat (limited to 'lib/libedit')
-rw-r--r-- | lib/libedit/readline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libedit/readline.c b/lib/libedit/readline.c index f39f2ca838a..2e37070033f 100644 --- a/lib/libedit/readline.c +++ b/lib/libedit/readline.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readline.c,v 1.15 2016/01/30 12:22:20 schwarze Exp $ */ +/* $OpenBSD: readline.c,v 1.16 2016/03/20 00:01:21 krw Exp $ */ /* $NetBSD: readline.c,v 1.91 2010/08/28 15:44:59 christos Exp $ */ /*- @@ -2051,7 +2051,7 @@ _rl_event_read_char(EditLine *el, char *cp) else num_read = 0; #elif defined(F_SETFL) && defined(O_NDELAY) - if ((n = fcntl(el->el_infd, F_GETFL, 0)) < 0) + if ((n = fcntl(el->el_infd, F_GETFL)) < 0) return -1; if (fcntl(el->el_infd, F_SETFL, n|O_NDELAY) < 0) return -1; |