Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit pass the stream to the getc function



details:   https://anonhg.NetBSD.org/src/rev/173151156c81
branches:  trunk
changeset: 348601:173151156c81
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 28 18:32:26 2016 +0000

description:
pass the stream to the getc function

diffstat:

 lib/libedit/readline.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c890a6fddab9 -r 173151156c81 lib/libedit/readline.c
--- a/lib/libedit/readline.c    Fri Oct 28 09:16:02 2016 +0000
+++ b/lib/libedit/readline.c    Fri Oct 28 18:32:26 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: readline.c,v 1.138 2016/09/01 13:23:44 mbalmer Exp $   */
+/*     $NetBSD: readline.c,v 1.139 2016/10/28 18:32:26 christos Exp $  */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.138 2016/09/01 13:23:44 mbalmer Exp $");
+__RCSID("$NetBSD: readline.c,v 1.139 2016/10/28 18:32:26 christos Exp $");
 #endif /* not lint && not SCCSID */
 
 #include <sys/types.h>
@@ -196,7 +196,7 @@
 {
        int i;
 
-       i = (*rl_getc_function)(NULL);
+       i = (*rl_getc_function)(rl_instream);
        if (i == -1)
                return 0;
        *c = (wchar_t)i;



Home | Main Index | Thread Index | Old Index